Hello Guest

Filetype Troubles

  • 2 Replies
  • 10047 Views
Filetype Troubles
« 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

*

Offline Matzon

  • *****
  • 2242
Re: Filetype Troubles
« Reply #1 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.

Re: Filetype Troubles
« Reply #2 on: June 04, 2007, 23:56:42 »
Thanks. It's working now. ^_^