![]() |
![]() |
![]() |
Drain the playback queue
#include <sys/asoundlib.h> int snd_pcm_playback_drain( snd_pcm_t * handle );
libasound.so
The snd_pcm_playback_drain() function drains the playback queue. This call stops the transfer and drains the whole playback queue.
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 |
![]() |
![]() |
![]() |