From e8062a920a6ad80b1ddeadc4a8e10d61db4d05f7 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Thu, 9 Feb 2017 16:38:08 +0100 Subject: [PATCH] Audio fixes + bug documentation --- Readme.md | 6 +++++- seopardy.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 15ac814..6d7a6d3 100644 --- a/Readme.md +++ b/Readme.md @@ -159,4 +159,8 @@ Known Bugs output on the console when exiting the game. * Stylesheets for buttons/labels could be more centrally managed and more consistent. - + * The audio sounds a bit glitchy on some pulseaudio systems. Setting + `flat-volume = no` in `/etc/pulse/daemon.conf` fixes this for some users. + * The volume for the first played song is at 100%, no matter what. This is + currently circumvented by playing a media song and immediately stopping it + at the beginning of the game. diff --git a/seopardy.py b/seopardy.py index a03415b..2c2d0fd 100755 --- a/seopardy.py +++ b/seopardy.py @@ -76,6 +76,9 @@ if __name__ == '__main__': if not MusicBox.add_music(name, path): print("Error: Could not load music %s (file %s)" % (name, path), file=sys.stderr) sys.exit(1) + # BUG workaround: phonon is on 100% volume for some machines. try playing one song and immediately stopping it + MusicBox.play_music(MusicBox.media.keys()[0]) + MusicBox.stop_music() # create and start input threads inputs = []