IMA ADPCM is an extremely simple audio compression algorithm that achieves pretty good sound quality at 4-bits per sample (352kbps for 44100khz CD audio). It was used in a lot of games up until the year 2000. Full source is included, and it has a straight-forward API. Maybe someone will find it useful for something!
To convert a WAV (16-bit stereo only) to an IMA file: java -cp imaadpcm.jar imaadpcm.ImaAdpcm input.wav output.ima
To test-play an IMA file: java -cp imaadpcm.jar imaadpcm.PlayAdpcm input.ima samplerate
|