Lines Matching defs:delay
62 double delay;
73 /* Get the current internal delay of the resampler */
74 delay = pa_resampler_get_delay(r, false);
80 /* If the delay is larger than the length of the history queue, we can only
82 if ((size_t)delay >= history_max) {
84 pa_log_debug("Resampler delay exceeds maximum history");
88 /* Initially set the history to 3 times the resampler delay. Use at least 2 ms.
89 * We try to find a value between 2 and 3 times the resampler delay to ensure
92 history_frames = (size_t)(delay * 3.0);
98 /* If possible, use between 2 and 3 times the resampler delay */
99 if (remainder < (size_t)delay && history_frames - remainder <= history_max)
101 /* Else, try above 3 times the delay */
109 /* Try to use 2.5 times the delay. */
110 history_frames = PA_MIN((size_t)(delay * 2.5), history_max);