![]() |
![]() |
![]() |
Drain playback queue
#include <sys/asoundlib.h> int snd_pcm_plugin_playback_drain( snd_pcm_t * handle );
libasound.so
The snd_pcm_plugin_playback_drain() function drains the playback queue. This call stops the transfer and drains the whole playback queue.
Zero on success, or an error code (errno is set).
See the example in Drain in the Playing audio data chapter.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |