Lines Matching refs:pcm_val
2200 int16_t pcm_val) /* 2's complement (13-bit range) */ in sox_13linear2alaw() argument
2211 if (pcm_val >= 0) { in sox_13linear2alaw()
2215 pcm_val = -pcm_val - 1; in sox_13linear2alaw()
2219 seg = search(pcm_val, seg_aend, 8); in sox_13linear2alaw()
2228 aval |= (pcm_val >> 1) & QUANT_MASK; in sox_13linear2alaw()
2230 aval |= (pcm_val >> seg) & QUANT_MASK; in sox_13linear2alaw()
2299 int16_t pcm_val) /* 2's complement (14-bit range) */ in sox_14linear2ulaw() argument
2311 if (pcm_val < 0) { in sox_14linear2ulaw()
2312 pcm_val = -pcm_val; in sox_14linear2ulaw()
2317 if ( pcm_val > CLIP ) pcm_val = CLIP; /* clip the magnitude */ in sox_14linear2ulaw()
2318 pcm_val += (BIAS >> 2); in sox_14linear2ulaw()
2321 seg = search(pcm_val, seg_uend, 8); in sox_14linear2ulaw()
2330 uval = (unsigned char) (seg << 4) | ((pcm_val >> (seg + 1)) & 0xF); in sox_14linear2ulaw()