![]() |
![]() |
![]() |
Flush buffers
#include <sys/asoundlib.h> int snd_pcm_channel_flush( snd_pcm_t * handle, int channel );
libasound.so
The snd_pcm_channel_flush() function flushes the specified channel (playback or capture). This call waits until all data is processed (playback only) and then stops the transfer.
If the operation is successful (zero is returned), the driver state is changed to SND_PCM_STATUS_READY.
Zero on success, or an error code.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
snd_pcm_playback_drain(), snd_pcm_plugin_flush()
![]() |
![]() |
![]() |