player = new AudioPlayer(audioServiceManager);
AudioFormat audioFormat = new AudioFormat(
AudioFormat.Encoding.PCM_SIGNED, 44100.0F, 16, 1, 2, 44100.0F,
false);
// Initialize the decoder.
decoderStream = new Speex2PcmAudioInputStream(inputStream, audioFormat,
AudioSystem.NOT_SPECIFIED);
log.info("AudioDecoder successfully initalized.");
if (player.setupSound(decoderStream, mixer) == false) {
// log.error @ player.setupSound
ErrorMessageDialog