Set the current channel mapping for a PCM stream
#include <sys/asoundlib.h>
int snd_pcm_set_chmap( snd_pcm_t *pcm,
const snd_pcm_chmap_t *map );
(QNX Software Development Platform 6.6 io-audio patch [patch ID 4510] or later) The snd_pcm_set_chmap() function sets the current channel mapping for a PCM stream. It's supported only if the hardware is capable of being mapped.
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.