Browse Source

Audio fixes + bug documentation

Sebastian Lohff 2 years ago
parent
commit
e8062a920a
2 changed files with 8 additions and 1 deletions
  1. 5
    1
      Readme.md
  2. 3
    0
      seopardy.py

+ 5
- 1
Readme.md View File

@@ -159,4 +159,8 @@ Known Bugs
159 159
    output on the console when exiting the game.
160 160
  * Stylesheets for buttons/labels could be more centrally managed and more
161 161
    consistent.
162
-
162
+ * The audio sounds a bit glitchy on some pulseaudio systems. Setting
163
+   `flat-volume = no` in `/etc/pulse/daemon.conf` fixes this for some users.
164
+ * The volume for the first played song is at 100%, no matter what. This is
165
+   currently circumvented by playing a media song and immediately stopping it
166
+   at the beginning of the game.

+ 3
- 0
seopardy.py View File

@@ -76,6 +76,9 @@ if __name__ == '__main__':
76 76
 			if not MusicBox.add_music(name, path):
77 77
 				print("Error: Could not load music %s (file %s)" % (name, path), file=sys.stderr)
78 78
 				sys.exit(1)
79
+	# BUG workaround: phonon is on 100% volume for some machines. try playing one song and immediately stopping it
80
+	MusicBox.play_music(MusicBox.media.keys()[0])
81
+	MusicBox.stop_music()
79 82
 
80 83
 	# create and start input threads
81 84
 	inputs = []

Loading…
Cancel
Save