The optimal solution right now (EasyOGG) doesn’t allow you to stream OGG’s in, which is terribly suboptimal if you’re trying to play back music. I want to do this using pure Java (no OpenAL or native libraries) - is there any pre-existing solution, and if not, how would I go about rolling my own code for this?
For interest, EasyOgg doesn’t load the whole Ogg up, it bites chunks off and feeds them into JOrbis/JOgg.
Kev
You ever got it streaming successfully through OpenAL though Kev? I just can’t get it to work reliably. Random OpenAL errors abound. Works for a bit then barfs, like some sort of threading issue - except OpenAL is supposedly thread-safe.
Cas
Seems to work for me, at least I don’t get error reports about it recently. There are the odd OGG that JOgg doesn’t like tho
Kev
I got the same issue with OpenAL errors and I also suspected threading, and after some googling people seemed to have fixed it by making their code single threaded (also C based code that didn’t use OGG at all, just streaming to OpenAL…).
I tried to change the code so that the streaming doesn’t go in its own thread, but that didn’t help.
I’m not using EasyOgg, although the code essentially does the same thing. Also, on my laptop the problems seem to be more severe than on my desktop (on my desktop I can just ignore the errors and music will keep playing).
Could it be something on the native side of OpenAL?