[Previous] [Contents] [Next]

snd_pcm_plugin_status()

Get current PCM runtime status

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_plugin_status( 
                   snd_pcm_t * handle, 
                   snd_pcm_channel_status_t * status );

Library:

libasound.so

Description:

The snd_pcm_plugin_status() function fills the status structure with data about the PCM channel runtime status selected by handle. The channel member specifies the direction.

Errors:

-EBADFD
The pcm device state isn't ready.
-EFAULT
Failed to copy data.
-EINVAL
Invalid handle or the data pointer is NULL.

Examples:

See the example in Configuring the audio channel in the Playing audio data chapter.

Classification:

ALSA

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

[Previous] [Contents] [Next]