snd_pcm_playback_drain

Name

snd_pcm_playback_drain -- drain playback queue

Synopsis

int snd_pcm_playback_drain(snd_pcm_t *handle);

Description

Drain the playback queue. This call stops the transfer and drain the whole playback queue. Function returns zero if successful, otherwise it returns an error code.

If the operation was successful (zero is returned), then the driver state is changed to SND_PCM_STATUS_READY.