Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Music stops during bonus round on Linux

1.0beta3
open
nobody
None
5
2007-05-10
2007-05-10
David Young
No

Music plays fine during the intro, instructions, and the first scenario. When the game reaches the bonus round, music stops with an exception, shown below.

javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 24000.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:494)
at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:107)
at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:139)
at com.textflex.drscenario.DrScenario$MusicPlayer.getLine(DrScenario.java:2911)
at com.textflex.drscenario.DrScenario$MusicPlayer.rawplay(DrScenario.java:2871)
at com.textflex.drscenario.DrScenario$MusicPlayer.playMP3(DrScenario.java:2854)
at com.textflex.drscenario.DrScenario$MusicPlayer.run(DrScenario.java:2819)
at java.lang.Thread.run(Thread.java:619)

Subsequently, the exception is repeatedly thrown as music shifts to the next scenario. After ending the game and starting a new one, the exception is thrown again during the instruction phase, even though it played previously.

This problem has not yet cropped up in tests on Windows.

Discussion