playing stereo ogg is 2times to slow

Started by gepi, February 04, 2008, 12:11:23

Previous topic - Next topic

gepi

Hello,

im running a Linux machine and i've done the workaround to play ogg witch lwjgl. Now i can play ogg with no problems, but only if its mono. If i try to play a stereo ogg, it's 2 times to slow.
If tryed the idee with the jorbis. It works, but same problem, the problem where be solved, if i do that:

AL10.alBufferData(buffer, format, dataBuffer, mono ? oggInputStream.getRate() : oggInputStream.getRate()*2);


But i won't use jorbis, because it uses more then 10% of my cpu, instead of max. 3% cpu use.

I hope someone can tell me how to solve to problem, or when it will be solved be the new lwjgl library.

Greetings

PS. Sorry for my bad english (I'm Suisse)