Lines Matching defs:Sample
31 /* Non-linear compression by companding. The function works on a sample by sample */
70 LVM_INT16 Sample; /* Input samples */
71 LVM_INT32 SampleNo; /* Sample index */
84 Sample = *pDataIn;
93 if ((LVM_INT32)Sample != -32768)
95 Temp = (LVM_INT16)((Sample * Sample) >> 15);
96 if(Sample >0)
98 Sample = (LVM_INT16)(Sample + ((Gain * (Sample - Temp)) >> 15));
102 Sample = (LVM_INT16)(Sample + ((Gain * (Sample + Temp)) >> 15));
110 *pDataOut = Sample;