LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: nomore on August 13, 2003, 13:15:45

Title: OGG and MP3's with OpenAL
Post by: nomore on August 13, 2003, 13:15:45
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
Title: OGG and MP3's with OpenAL
Post by: Matzon on August 13, 2003, 14:42:25
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.
Title: OGG and MP3's with OpenAL
Post by: nomore on August 13, 2003, 16:37:33
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
Title: OGG and MP3's with OpenAL
Post by: Matzon on August 13, 2003, 18:00:37
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).