| Updated: October 28, 2024 | 
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 );
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 remapped.
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.