[Previous] [Contents] [Next]

snd_pcm_playback_drain()

Drain the playback queue

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_playback_drain( snd_pcm_t * handle );

Library:

libasound.so

Description:

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.

Returns:

Zero on success, or an error code.

Errors:

-EBADFD
The pcm device state isn't ready.
-EINVAL
Invalid handle.

Classification:

ALSA

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

[Previous] [Contents] [Next]