snd_pcm_plugin_set_pan()

Set the parameters to the panning plugin

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_plugin_set_pan (snd_pcm_t     *pcm, 
                            int            channel, 
                            snd_pcm_pan_t *pPan)

Since:

BlackBerry 10.3.0

Arguments:

pcm
The handle that is returned after a call to snd_pcm_open_* functions.
channel
The channel direction; either SND_PCM_CHANNEL_PLAYBACK or SND_PCM_CHANNEL_CAPTURE.
pPan
A pointer to the panning parameters to be applied.

Library:

libasound.so

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

Description:

The panning plugin provides functionality to spread a mono or stereo sound signal into a new stereo or multichannel sound. You must call snd_pcm_plugin_set_enable() to explicitly enable the panning plugin. You can call this plugin only after to have called snd_pcm_plugin_params() .

Returns:

EOK(zero) upon success, a negative errno upon failure. The errno values are available in the errno.h file.

Errors:

-EINVAL
The state of handle or pPanis invalid, an invalid channel was provided as input, or an invalid state change occurred. You can call snd_pcm_plugin_status() to check if the state change was invalid.
-ENOENT
The panning plugin couldn't be found.

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.