Skip to content

Commit

Permalink
fix: sound issue on linux
Browse files Browse the repository at this point in the history
This fix solves an issue that may be due to a pyaudio/portaudio problem on
linux: the application was crashing when trying to directly close the audio
stream
  • Loading branch information
JonathanTaquet committed Oct 6, 2016
1 parent d495e7d commit 145324b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __del__(self):

def pause(self):
if self.stream:
self.stream.stop_stream()
self.stream.close()
self.stream = None
return self
Expand Down

0 comments on commit 145324b

Please sign in to comment.