Lines Matching defs:delay
1202 int pa_alsa_safe_delay(snd_pcm_t *pcm, snd_pcm_status_t *status, snd_pcm_sframes_t *delay, size_t hwbuf_size, const pa_sample_spec *ss,
1213 pa_assert(delay);
1218 * what is going on. We're going to get both the avail and delay values so
1221 * avail, delay and timestamp values in a single kernel call to improve
1227 * ALSA code will use the internal delay reported by the driver.
1238 *delay = snd_pcm_status_get_delay(status);
1240 k = (ssize_t) *delay * (ssize_t) pa_frame_size(ss);
1264 *delay = -(snd_pcm_sframes_t) (hwbuf_size / pa_frame_size(ss));
1266 *delay = (snd_pcm_sframes_t) (hwbuf_size / pa_frame_size(ss));
1293 if (PA_UNLIKELY(*delay < avail)) {
1296 pa_log(_("snd_pcm_avail_delay() returned strange values: delay %lu is less than avail %lu.\n"
1298 (unsigned long) *delay,
1306 *delay = avail;