|
|
@ -76,6 +76,9 @@ if __name__ == '__main__':
|
|
|
|
if not MusicBox.add_music(name, path):
|
|
|
|
if not MusicBox.add_music(name, path):
|
|
|
|
print("Error: Could not load music %s (file %s)" % (name, path), file=sys.stderr)
|
|
|
|
print("Error: Could not load music %s (file %s)" % (name, path), file=sys.stderr)
|
|
|
|
sys.exit(1)
|
|
|
|
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
|
|
|
|
# create and start input threads
|
|
|
|
inputs = []
|
|
|
|
inputs = []
|
|
|
|