[Previous] [Contents] [Next]

snd_pcm_plugin_playback_drain()

Drain playback queue

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_plugin_playback_drain( snd_pcm_t * handle );

Library:

libasound.so

Description:

The snd_pcm_plugin_playback_drain() function drains the playback queue. This call stops the transfer and drains the whole playback queue.

Returns:

Zero on success, or an error code (errno is set).

Errors:

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

Examples:

See the example in Drain in the Playing audio data chapter.

Classification:

ALSA

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

[Previous] [Contents] [Next]