Algorithm for converting PCM to IMA ADPCM?

5.5k views Asked by At

I have an algorithm for decompressing IMA ADPCM from http://wiki.multimedia.cx/index.php?title=IMA_ADPCM, but no way to re-compress it back to IMA ADPCM. Is there a simple pseudo code description, or do I have to reverse engineer it from the decompression algorithm?

I'm doing this because I'm writing a server that needs to receive audio, merge the audio tracks together, then send it back out.

Thanks for any help.

1

There are 1 answers

0
skagzilla On

Oops...

I did look around a bit and even found my way to this question: What is the algorithm of converting pcm to adpcm?. And to the site that held the answer for both questions: http://www.cs.columbia.edu/~hgs/audio/dvi/.

But I was too frustrated with looking through so many pages and documents that I gave up looking when I couldn't find the page.

But I found it. Pages 31-35 give the algorithm and a examples of running through it.