snd_pcm_channel_flush

Name

snd_pcm_channel_flush, snd_pcm_flush_playback, snd_pcm_flush_capture -- flush buffers

Synopsis

int snd_pcm_channel_flush(snd_pcm_t *handle, int channel);

int snd_pcm_playback_flush(snd_pcm_t *handle);

int snd_pcm_capture_flush(snd_pcm_t *handle);

Description

Flush the playback queue. This call waits until all data are not processed (playback only) and then stops the transfer. 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.