Skip to content

Commit

Permalink
Improve sound system shutdown process
Browse files Browse the repository at this point in the history
  • Loading branch information
qcapen committed Sep 6, 2016
1 parent 470710b commit 2168d04
Show file tree
Hide file tree
Showing 4 changed files with 2,681 additions and 2,691 deletions.
3 changes: 2 additions & 1 deletion mpfmc/core/audio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(self, mc):

# Initialize audio interface library (get audio output)
try:
self.audio_interface = AudioInterface.initialize(
self.audio_interface = AudioInterface(
mc=self.mc,
rate=self.config['frequency'],
channels=self.config['channels'],
Expand Down Expand Up @@ -131,6 +131,7 @@ def shutdown(self):
self.audio_interface = None

self._initialized = False
self.mc.sound_system = None

@property
def enabled(self):
Expand Down
Loading

0 comments on commit 2168d04

Please sign in to comment.