}
if ((soundState & bits._getMask(SND_INTERFACE_BIT) & SND_INTERFACE_OPENAL) != 0) {
try {
loadALBuffer();
} catch (OpenALException ex) {
throw new JXAException(ex);
}
}
if (isRepeatEnabled()) {
loop();
} else {
if (JXAenvUtils._debug) {
System.out.println(toString() + " playback");
}
final Thread tmute = getMuteThread();
if ((soundState & bits._getMask(SND_INTERFACE_BIT) & SND_INTERFACE_JLAYER) != 0) {
Thread t_mp3 = new Thread(soundTG, new Runnable() {
@Override
public void run() {
try {
if (player instanceof Player) {
if (JXAenvUtils._debug) {
System.out.println(toString() + " mp3 playback");
}
switchState(SND_STATE_BIT, SND_STATE_PLAYING);
tmute.start();
if (!isMute()) {
player.play();
stop();
}
}
} catch (JavaLayerException ex) {
throw new JXAException(ex);
}
}
}, "T-play-mp3");
t_mp3.setPriority(Thread.MAX_PRIORITY);
t_mp3.start();