OGG and MP3's with OpenAL

Started by nomore, August 13, 2003, 13:15:45

Previous topic - Next topic

nomore

Hi there again,  :wink:

how can I use MP3 and OGGS with the OpenAL java binding ?? The c samples of openal use function pointers to the the right codec. So.... some help would be nice...

Bye,

Alex

Matzon

OpenAL currently only knows how to play PCM audio. You therefore need to decode your mp3 or vorbis stream before playing it with OpenAL.

I know that they're working on adding a Ogg Vorbis extension to OpenAL. But for now, you're best bet is:
http://www.jcraft.com/jorbis/

Alien Flux uses Ogg Vorbis for its samples, and decodes them before execution.

If you're going to play some large samples, you might want to use buffer queueing.

nomore

Well, the extensions are in OpenAL.

Look at this: http://opensource.creative.com/pipermail/openal/2003-August/000013.html

I'll try to add them to the java binding but never used function pointers under linux.. so.... we'll see

Matzon

don't do that now... they're being reworked:
QuoteYep -- we've got to roll this into the development plans (along with Ogg Vorbis support, ADPCM support, and the enumeration extension -- all of which are proceeding nicely BTW).