Determine the best speakers or microphones to produce a mono signal based on various conditions
#include <sys/asoundlib.h>
int snd_pcm_plugin_find_stereo_pair_from_map(int direction,
int hand_occlusion,
int angle,
unsigned int pos,
unsigned int hw_channels,
const unsigned int *hw_channel_map,
unsigned int avoid_channels,
const unsigned int *avoid_channel_map);
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 | Yes |