Lines Matching refs:scaler
68 static float clipAndClampFloatToPcm16(float sample, float scaler) { in clipAndClampFloatToPcm16() argument
73 float fval = sample * scaler; in clipAndClampFloatToPcm16()
81 const float scaler = amplitude; in AAudioConvert_floatToPcm16() local
84 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()
94 float scaler = amplitude1; in AAudioConvert_floatToPcm16() local
100 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()
102 scaler += delta; in AAudioConvert_floatToPcm16()
112 const float scaler = amplitude / SHORT_SCALE; in AAudioConvert_pcm16ToFloat() local
114 destination[i] = source[i] * scaler; in AAudioConvert_pcm16ToFloat()
125 float scaler = amplitude1 / SHORT_SCALE; in AAudioConvert_pcm16ToFloat() local
129 *destination++ = *source++ * scaler; in AAudioConvert_pcm16ToFloat()
131 scaler += delta; in AAudioConvert_pcm16ToFloat()
143 float scaler = amplitude1; in AAudio_linearRamp() local
151 *destination++ = sample * scaler; in AAudio_linearRamp()
153 scaler += delta; in AAudio_linearRamp()
165 float scaler = amplitude1; in AAudio_linearRamp() local
170 float sample = *source++ * scaler; in AAudio_linearRamp()
173 scaler += delta; in AAudio_linearRamp()
183 const float scaler = amplitude; in AAudioConvert_formatMonoToStereo() local
186 int16_t sample16 = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_formatMonoToStereo()
200 const float scaler = amplitude1 + (frameIndex * delta); in AAudioConvert_formatMonoToStereo() local
202 int16_t sample16 = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_formatMonoToStereo()
212 const float scaler = amplitude / SHORT_SCALE; in AAudioConvert_formatMonoToStereo() local
214 float sample = source[i] * scaler; in AAudioConvert_formatMonoToStereo()
229 float scaler = scaler1 + (frameIndex * delta); in AAudioConvert_formatMonoToStereo() local
230 float sample = source[frameIndex] * scaler; in AAudioConvert_formatMonoToStereo()
249 const float scaler = amplitude1 + (frameIndex * delta); in AAudio_linearRampMonoToStereo() local
250 float sampleScaled = sample * scaler; in AAudio_linearRampMonoToStereo()
265 const float scaler = amplitude1 + (frameIndex * delta); in AAudio_linearRampMonoToStereo() local
267 const float sample = *source++ * scaler; in AAudio_linearRampMonoToStereo()