snd_pcm_plugin_set_enable()

Enable plugins that have been disabled

Synopsis:

#include <sys/asoundlib.h>

unsigned int snd_pcm_plugin_set_enable( snd_pcm_t *pcm,
                                        unsigned int mask );

Since:

BlackBerry 10.0.0

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().
mask
A bitset of the sets you want to disable.

Library:

libasound.so

Use the -l asound option to qcc to link against this library.

Description:

The snd_pcm_plugin_set_enable() function enables plugins that have been disabled. 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.

Returns:

The value of the plugin mask before this change was made.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Read the Caveats

Caveats:

This function is not thread safe if pcm (snd_pcm_t) is used across multiple threads.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus