[Previous] [Contents] [Next]

snd_pcm_plugin_setup()

Get current PCM setup

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_plugin_setup( snd_pcm_t * handle,
                          snd_pcm_channel_setup_t * setup );

Library:

libasound.so

Description:

The snd_pcm_plugin_setup() function fills the setup structure with data about the PCM channel settings selected by handle. The channel member specifies the direction.

Errors:

-EINVAL
Invalid handle; data pointer is NULL; setup->mode isn't SND_PCM_MODE_STREAM or SND_PCM_MODE_BLOCK.

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]