gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Ima-ADPCM encoder

#151049 - goruka - Sun Feb 17, 2008 7:01 pm

Hi there! Do you guys know where can I find some example code for ima-adpcm encoding? if not, at least a documentation good enough for writing an encoder, as everything i can find is for decoding.

Cheers!

#151051 - tepples - Sun Feb 17, 2008 7:15 pm

goruka wrote:
Hi there! Do you guys know where can I find some example code for ima-adpcm encoding? if not, at least a documentation good enough for writing an encoder, as everything i can find is for decoding.

You might be able to write an encoder given the information in 8ad codec. (The source code comes preconfigured for a nonconforming variant designed to prevent slope overload, but it contains instructions to tweak it for use with standard IMA ADPCM.)
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#151067 - eKid - Mon Feb 18, 2008 2:18 am

I used this http://ekid.nintendev.com/adpcm.c