Determines the best microphones or speakers to utilize for producing a mono signal
#include <sys/asoundlib.h>
int snd_pcm_plugin_find_stereo_pair(snd_pcm_t *pcm,
int angle,
unsigned int pos[2]);
BlackBerry 10.3.0
To determine the best microphones or speakers to use, an average of the input from the microphones is taken. The system tries to pick microphones that are near the center of the device or an equal distance from the center. If microphones are requested, microphones that are near speakers are avoided. As part of a separate selection process, speakers or microphones that are near a user's hand are avoided.
EOK on success, a negative errno upon failure. The errno values are available in the errno.h file.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Read the Caveats |
This function is not thread safe if pcm (snd_pcm_t) is used across multiple threads.