use of vazkii.symphony.lib.javazoom.jl.decoder.BitstreamException in project Symphony by Vazkii.
the class AdvancedPlayer method close.
/**
* Cloases this player. Any audio currently playing is stopped
* immediately.
*/
public synchronized void close() {
AudioDevice out = audio;
if (out != null) {
closed = true;
audio = null;
// this may fail, so ensure object state is set up before
// calling this method.
out.close();
lastPosition = out.getPosition();
try {
bitstream.close();
} catch (BitstreamException ex) {
}
}
}
Aggregations