Multi-channel playback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to playback a multi-channel PCM stream, e.g. 5.1. Is there an API for configuring the channel positions?

I found this API:
int snd_pcm_set_chmap(snd_pcm_t *pcm, const snd_pcm_chmap_t *map);

typedef struct snd_pcm_chmap {
        unsigned int channels;
        unsigned int pos[0];
} snd_pcm_chmap_t;

But when I call it, it returns -6. Also, calling snd_pcm_get_chmap() return NULL.

Your help is appreciated.

Thanks
Steve

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux