Search in sources :

Example 1 with BitstreamException

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) {
        }
    }
}
Also used : AudioDevice(vazkii.symphony.lib.javazoom.jl.player.AudioDevice) BitstreamException(vazkii.symphony.lib.javazoom.jl.decoder.BitstreamException)

Aggregations

BitstreamException (vazkii.symphony.lib.javazoom.jl.decoder.BitstreamException)1 AudioDevice (vazkii.symphony.lib.javazoom.jl.player.AudioDevice)1