Searched refs:alaw_encode (Results 1 – 3 of 3) sorted by relevance
119 unsigned char alaw_encode [2048 + 1] = variable321 buffer [i] = alaw_encode [ptr [i] / 16] ; in s2alaw_array()323 buffer [i] = 0x7F & alaw_encode [ptr [i] / -16] ; in s2alaw_array()331 buffer [i] = alaw_encode [INT_MAX >> (16 + 4)] ; in i2alaw_array()333 buffer [i] = alaw_encode [ptr [i] >> (16 + 4)] ; in i2alaw_array()335 buffer [i] = 0x7F & alaw_encode [- ptr [i] >> (16 + 4)] ; in i2alaw_array()343 buffer [i] = alaw_encode [psf_lrintf (normfact * ptr [i])] ; in f2alaw_array()345 buffer [i] = 0x7F & alaw_encode [- psf_lrintf (normfact * ptr [i])] ; in f2alaw_array()355 buffer [i] = alaw_encode [psf_lrint (normfact * ptr [i])] ; in d2alaw_array()357 buffer [i] = 0x7F & alaw_encode [- psf_lrint (normfact * ptr [i])] ; in d2alaw_array()
37 static unsigned char alaw_encode (int sample) ;92 if (alaw_encode (short_buffer [k]) != alaw_buffer [k]) in main()93 …r error : sample #%d (0x%02X should be 0x%02X)\n", k, alaw_buffer [k], alaw_encode (short_buffer [… in main()174 unsigned char alaw_encode (int sample) in alaw_encode() function
56 static const guint8 alaw_encode[2048 + 1] = { variable234 return alaw_encode[pcm_val / 16]; in s16_to_alaw()236 return (0x7F & alaw_encode[pcm_val / -16]); in s16_to_alaw()