Thread with 3 posts
jump to expanded postIMA ADPCM is an extremely cute audio compression format. the reference algorithm is a few lines of C code with no multiplication or division, let alone floating-point. just bitshifts and two constant lookup tables <3
‪update: okay I am slightly pissed off at whoever decided the headers of the ima4 packets can contain an out-of-range value that the decoder must clamp‬
here’s the algorithm :3 https://github.com/hikari-no-yume/touchHLE/blob/trunk/src/audio/ima4.rs