Filetype Troubles

Started by Raelifin, June 01, 2007, 23:09:15

Previous topic - Next topic

Raelifin

Hello, I'm sorry if this is a stupid question, but I don't have much experience with OpenAL.

Can LWJGL, in conjunction with OpenAL load anything but wav files? I'm specifically trying to play an mp3.

Specific code examples of loading buffer data would be awesome.

Thanks,
  - Raelifin

Matzon

No. OpenAL only plays PCM. You need to decode it using one of the available libraries or play it through FMOD. I strongly advise NOT using MP3 but instead ogg/vorbis using the jorbis library.

Raelifin

Thanks. It's working now. ^_^