Phillip Stevens - 2015-10-17

Since the megaAVR has only a 10bit ADC, handling this as a 16bit integer is a bit wasteful.

I've added A-Law and u-Law routines from ITU to compand a signed 16bit sample (maximum 13bit resolution) into an unsigned 8bit value.

the G.711 companding is used in the Goldilocks Analogue code base where the ADC converter is involved.

 

Last edit: Phillip Stevens 2015-10-17