Enable PCM plugins
Synopsis:
#include <sys/asoundlib.h>
unsigned int snd_pcm_plugin_set_enable( snd_pcm_t *pcm,
unsigned int plugins );
Arguments:
- pcm
- The handle for the PCM device, which you must have opened by calling
snd_pcm_open_name(),
snd_pcm_open(),
or
snd_pcm_open_preferred().
- plugins
- A bitmap of the plugins that you want to enable.
Currently there is one disabled plugin:
- PLUGIN_ROUTING — enabling this will cause automatic routing to external devices
for a client that connects to the "pcmPreferred" device.
Library:
libasound.so
Use the -l asound option to
qcc
to link against this library.
Description:
You can use snd_pcm_plugin_set_enable()
to enable plugins that aren't ordinarily used in the plugin chain.
You need to do this before calling
snd_pcm_plugin_params().
Returns:
The updated bitmap of disabled plugins.
Note:
This function doesn't return a negative error code the way that other snd_pcm_*() functions do.
Classification:
QNX Neutrino
Safety: |
|
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Read the Caveats |
Caveats:
This function isn't thread safe if pcm (snd_pcm_t) is
used across multiple threads.