Streaming audio with AudioNode plays “ending” wrongly. How to put this better… YouTube: http://youtu.be/6iaeN2Ck0Vg
In the end it repeats a bit from somewhere in the last(?) buffer array. The is a bit of silence at the end of the sample, and instead of ending it after it, I still get the “-on’t abu-”.
I made my own MP2 audio loader, debugged and debugged until my eyes and ears bled. Then I converted the sample to WAV (plays perfectly in VLC) and the same happened. While debugging I tried synchronizing and wiping of the last buffer array (when it asks to read 300000 bytes and I have only 10000 to give, I tried wiping the rest of the buffer). I don’t know where the problem is, but I don’t think it was my loader, probably, since the WAV did the same. LWGL or JME…
Here is my code to start the audio playing in case I made a mistake:
AudioNode audioSource = new AudioNode(assetManager, "Sounds/test.wav", true);
audioSource.setLooping(false);
audioSource.play();
in SimpleAppInit(), just for testing purposes.