Lines Matching refs:detector_average
41 dk->detector_average = 0; in dk_init()
325 float desired_gain = dk->detector_average; in dk_update_envelope()
507 float detector_average = dk->detector_average; in dk_update_detector_average() local
533 int is_release = (gain > detector_average); in dk_update_detector_average()
536 detector_average += in dk_update_detector_average()
537 (gain - detector_average) * in dk_update_detector_average()
545 detector_average += (gain - detector_average) * in dk_update_detector_average()
549 detector_average = gain; in dk_update_detector_average()
553 if (isbadf(detector_average)) in dk_update_detector_average()
554 detector_average = 1.0f; in dk_update_detector_average()
556 detector_average = min(detector_average, 1.0f); in dk_update_detector_average()
559 dk->detector_average = detector_average; in dk_update_detector_average()