Get the current channel mapping for a PCM stream
#include <sys/asoundlib.h>
int snd_pcm_query_channel_map( snd_pcm_t *pcm,
snd_pcm_chmap_t *chmap );
(QNX Software Development Platform 6.6 io-audio patch [patch ID 4510] or later) The snd_pcm_query_channel_map() function gets the current channel mapping for a PCM stream and stores it in the given snd_pcm_chap_t structure.
0 on success, or a negative errno value if an error occurred.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Read the Caveats |
This function isn't thread-safe if pcm (snd_pcm_t) is used across multiple threads.