I’ve been working on audio encoding using Java at work for a while, and one problem I ran into was with Tritonus and encoding a pcm stream to Ogg Vorbis. No matter what I did, I only got sound in the left channel.
It seems Tritonus assumes that the channel buffers from libvorbis are allocated as one large block, which is no longer the case. Changing `tritonus/src/lib/vorbis/org_tritonus_lowlevel_vorbis_DspState.c` around line 183 to:
(*env)->GetFloatArrayRegion(env, floatArray,
0, nValues, bufferPointer[i]);
did the trick for me, and I suddenly got sound in both channels again.
