Get a list of the available channel mappings for a PCM stream
#include <sys/asoundlib.h> snd_pcm_chmap_query_t **snd_pcm_query_chmaps( snd_pcm_t *pcm );
(QNX Software Development Platform 6.6 io-audio patch [patch ID 4510] or later) The snd_pcm_query_chmaps() function returns a list of the available channel mappings for a PCM stream. To free this list, call snd_pcm_free_chmaps().
A pointer to an array of snd_pcm_chmap_query_t structures that describe the mappings, or NULL if no mappings are available or an error occurred (errno is set).
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.