The program just generated a mission where the communication system goes down 40-ish seconds before mission end, and is restored while the ship jumps back. The 20-second countdown plays over the white noise, and the “communications restored” and “jumping to hyperspace” clips play simultaneously.
I don't really get the mission generator code, so I'm just leaving this here.
In generatePhases() you aren't deep copying the new mutable object threatGroup which causes issues where you can generate missions with no threats as they have been removed in previous fitting patterns. Will link my fix to this in the Android repo.
Phases announcement are messed up in the XML renderer:
Two elements announce phase 1 instead of one.
All announcement are shifted (first phase announced as second, second as third and third as third)
when launched with -p mp3, app crashes in native code with the following exception:
Exception in thread "PulseAudio Eventloop Thread" java.lang.IllegalStateException: drain failed
at org.classpath.icedtea.pulseaudio.EventLoop.native_iterate(Native Method)
at org.classpath.icedtea.pulseaudio.EventLoop.run(EventLoop.java:133)
at java.lang.Thread.run(Thread.java:679)
ubuntu 12.10,
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.3) (6b27-1.12.3-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
tested with various language/sound pack: the crash appears at different moment depending on the pack.