Retrieve a playback or capture channel
#include <sys/asoundlib.h>
int snd_pcm_query_channel_map(snd_pcm_t *pcm,
snd_pcm_chmap_t *map);
BlackBerry 10.3.0
This function retrieves a map of speakers for microphones based on whether it's a playback or capture channel. When this function successfully returns, the map array contains a map of speakers. If you don't specify an array that's large enough to store the number of channels in map.pos, the function returns with ENOMEM. When the function returns with ENOMEM, map.channels is updated with the minimum size of array that is required for map.pos.
EOK on success, an 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.