[asterisk-dev] g722 question

Saúl Ibarra saghul at gmail.com
Mon Dec 7 09:59:44 CST 2009


> It looks like they have made no attempt to scale the signal properly.
> The codec follows the G.722 spec in its handling of number scaling. That
> means it takes in 14 bit linear samples, and output 14 bit linear
> samples. A 16 bit signal needs to be shifted down 2 bits before
> encoding, and shifted up 2 bits after decoding. 2 bits is 12 dB, which
> is a pretty large change in volume.
>

They actually do that AFAIK, the problem then may be the other
implementation, because it I don't shift those two bits audio is fine.

Thanks!


-- 
/Saúl
http://saghul.net | http://sipdoc.net



More information about the asterisk-dev mailing list