[pulseaudio-discuss] alsa sink latency - how to account for startup delay
Georg Chini
georg at chini.tk
Sat Apr 9 08:59:11 UTC 2016
>
>> Do loopback module stop the running pcm stream ?
>>
>> Seem pulseaudio does not use snd_pcm_drop nor snd_pcm_drain, how can
>> the running pcm stream stop?
>>
> This is the beginning of the suspend function of module-loopback, so
> obviously
sorry, the suspend function is in alsa-sink, not module-loopback ...
> snd_pcm_close close is called instead of snd_pcm_drop or _drain (I did not
> change anything here):
>
> static int suspend(struct userdata *u) {
> pa_assert(u);
> pa_assert(u->pcm_handle);
>
> /* Let's suspend -- we don't call snd_pcm_drain() here since that
> might
> * take awfully long with our long buffer sizes today. */
> snd_pcm_close(u->pcm_handle);
>
More information about the pulseaudio-discuss
mailing list