LWJGL Forum

Programming => OpenAL => Topic started by: Eternity on August 23, 2010, 13:24:03

Title: playing a .XM file
Post by: Eternity on August 23, 2010, 13:24:03
Hi.

this seems like a stupid question but i cant seem to find any good information.
I simply want to use OpenAL to play .XM music files and other similar tracker music formats. Do i need to read in the .XM file, convert it to the suiteble format and then pass it to WaveData.create(byte[] buffer)? or how is it done?

Thnx in Advance!
Title: Re: playing a .XM file
Post by: Ciardhubh on August 23, 2010, 14:22:05
Mods have to be synthesised to PCM audio data. This data is then passed to OpenAL. IBXM is a great library for many module formats: http://sites.google.com/site/mumart/ (get_audio(...) in class IBXM).
Title: Re: playing a .XM file
Post by: Eternity on August 24, 2010, 07:08:46
Thnx!

i managed to get it working with the IBXM library.