Lines Matching refs:bin_power
338 double bin_power[bin_power_len]; in audio_signal_detect() local
379 bin_power[0] = data[0]; in audio_signal_detect()
381 bin_power[i] = hypot(data[i], data[data_len - i]); in audio_signal_detect()
383 bin_power[bin_power_len - 1] = data[data_len / 2]; in audio_signal_detect()
387 bin_power[i] = 2 * bin_power[i] / data_len; in audio_signal_detect()
394 if (bin_power[i] > NOISE_THRESHOLD) { in audio_signal_detect()
396 freq, bin_power[i]); in audio_signal_detect()
405 if (isnan(max) || bin_power[i] > max) in audio_signal_detect()
406 max = bin_power[i]; in audio_signal_detect()
431 if (bin_power[i] > threshold) in audio_signal_detect()
441 if (bin_power[i] < threshold) { in audio_signal_detect()
471 if (bin_power[i] > local_max) { in audio_signal_detect()
472 local_max = bin_power[i]; in audio_signal_detect()