[alsa-devel] SNDRV_PCM_TRIGGER_STOP and audio still queued in the driver

Jon Smirl jonsmirl at gmail.com
Sat Aug 15 17:53:40 CEST 2009


Source to the ALSA section of the app doing this (brutefir).

http://brutefir.sourcearchive.com/documentation/1.0f-1ubuntu0/bfio__alsa_8c-source.html

The stop routine just closes the handles. Is this the correct
behavior? There is over 10s of music queued in the driver when the
handle is closed.

void
bfio_synch_stop(void)
{
    int n;

    if (base_handle == NULL) {
        return;
    }
    FOR_IN_AND_OUT {
        for (n = 0; n < n_handles[IO]; n++) {
            snd_pcm_close(handles[IO][n]);
        }
    }
}


-- 
Jon Smirl
jonsmirl at gmail.com


More information about the Alsa-devel mailing list