Add formats for UHJ with muLaw, and ADPCM for 2-channel UHJ
commit0b700286bd33abca9526d30496745d7a52cbeb1a
authorChris Robinson <chris.kcat@gmail.com>
Sun, 26 Feb 2023 08:43:25 +0000 (26 00:43 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Sun, 26 Feb 2023 09:38:46 +0000 (26 01:38 -0800)
tree070bc3dc215021c42b40c88e8ff9f22a90e30adc
parent097fac398470d15e9761a6441df5d47fa9a1ddfb
Add formats for UHJ with muLaw, and ADPCM for 2-channel UHJ

ADPCM doesn't seem to be well defined for more than two channels, even though
there doesn't seem to be any issue with simply increasing the channel step over
interleaved data (ffmpeg refuses to create IMA4 or MSADPCM files with more than
two channels, and its decoder behaves oddly different when channels > 2). So
IMA4 and MSADPCM can only safely handle 2-channel UHJ.

There's no problem with muLaw supporting 2-, 3-, or 4-channel UHJ though.
al/buffer.cpp
alc/inprogext.h