Lines Matching defs:source
203 /* convert source PCM to floats */
261 /* shift sine waveform to source[0] = 0.0 */
263 na->source[i] = a * src[i + shift + 1] + b * src[i + shift];
269 tmp += na->source[i] * na->source[i];
275 na->source[i] *= gain;
280 tmp = fabsf(na->target[i] - na->source[i]);
307 na.source = (float *)malloc(sizeof(float) * nsamples);
308 if (!na.source) {
369 free(na.source);
377 float *source;
379 source = (float *)malloc(sizeof(float) * bat->frames);
380 if (!source)
383 /* convert source PCM to floats */
384 bat->convert_sample_to_float(buf, source, bat->frames);
387 err = calculate_noise(bat, source, channel);
389 free(source);