[Previous] [Contents] [Next]

snd_pcm_plugin_prepare()

Prepare the selected direction

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_plugin_prepare( snd_pcm_t * handle,
                            int channel );

Library:

libasound.so

Description:

The snd_pcm_plugin_prepare() function prepares hardware, that requires additional initialization time, for a specified transfer plugin.

Errors:

-EBUSY
The subchannel is in the running state.
-EINVAL
Invalid handle.

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]