From 8fc580e12298f2dca859d62ecc2938d3460cbde9 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Sat, 3 Jun 2017 19:56:46 -0400 Subject: [PATCH] add comment about segfault --- soundLib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soundLib.py b/soundLib.py index 9d7da4b..4f5f84a 100644 --- a/soundLib.py +++ b/soundLib.py @@ -10,7 +10,6 @@ logger = logging.getLogger(__name__) # TODO: figure out why we have buffer underruns # TODO: why does the mixer segfault? (at least I think that's the cuprit) -# TODO: stop all sounds before shutting down mixer class SoundEffect(mixer.Sound): def __init__(self, path, volume=None, loops=0): super().__init__(path) @@ -196,6 +195,7 @@ class SoundLib: logger.debug('Stopping TTS Queue Monitor') def __del__(self): - mixer.quit() self._stopMonitor() self._ttsSounds.clear() + # this sometimes casues "Fatal Python error: (pygame parachute) Segmentation Fault" + mixer.quit()