[Openal-devel] ALUT: IMA4 (adpcm) support for the wav file reader

Erik Hofman erik at ehofman.com
Wed Jun 4 00:25:14 PDT 2008


Chris Robinson wrote:
> On Sunday 01 June 2008 02:19:40 am Erik Hofman wrote:
>> I've created an ima4 adpcm codec and support for the wav file reader of
>> alut:
>> http://ehtw.speedlinq.nl/emh/alut_ima-adpcm.diff
>>
>> I've tested this code for both mono and stereo compressed files.
> 
> Thinking about it, I wonder if it would be a good idea to test for the 
> AL_EXT_IMA4 extension, and pass the data to OpenAL without conversion (at 
> least when dealing with the alutCreateBuffer* functions).

You always are going to need some sort of conversion, I couldn't 
possibly think anyone else is using the microsoft way of interleaving 
the data for stereo sounds.

I'm not even sure all hardware supports free blocksize lengths so maybe 
it even requires a bit of recoding in the end.

That said, it would be nice to support.

Erik


More information about the Openal-devel mailing list