[Previous] [Contents] [Next]

snd_pcm_plugin_info()

Get information about the PCM direction

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_plugin_info( snd_pcm_t * handle, 
                         snd_pcm_channel_info_t * info );

Library:

libasound.so

Description:

The snd_pcm_plugin_info() function fills the info structure with data about the PCM channel selected by handle. The channel member specifies the direction. Other members are read-only.

Returns:

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

Errors:

-EINVAL
Invalid handle.

Examples:

See the example in Opening your audio device in the Playing audio data chapter.

Classification:

ALSA

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

[Previous] [Contents] [Next]