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);


_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to