Skip to content

Commit

Permalink
Merge pull request #3 from dip-c/portaudio-fix
Browse files Browse the repository at this point in the history
Fixes crash on no audio hardware
  • Loading branch information
domstoppable authored Sep 18, 2024
2 parents c48b729 + 5bb464f commit 3395ede
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pupil_src/shared_modules/audio_playback.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,13 @@ def _setup_output_audio(self):

logger.warning("Audio found, but playback failed (#2103)")
logger.debug(traceback.format_exc())
except sd.PortAudioError:
self.sd_stream = None
import traceback

logger.warning("Audio device could not be started")
logger.debug(traceback.format_exc())

def _setup_audio_vis(self):
self.audio_timeline = None
self.audio_viz_trans = Audio_Viz_Transform(
Expand Down

0 comments on commit 3395ede

Please sign in to comment.