LWJGL Forum

Programming => OpenAL => Topic started by: Raelifin on June 01, 2007, 23:09:15

Title: Filetype Troubles
Post by: Raelifin on June 01, 2007, 23:09:15
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
Title: Re: Filetype Troubles
Post by: Matzon on June 02, 2007, 06:43:07
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.
Title: Re: Filetype Troubles
Post by: Raelifin on June 04, 2007, 23:56:42
Thanks. It's working now. ^_^