Alsa works very well with multi-channel. I would take a look at the alsa sources for this alsa program that works out of the box:
speaker-test
I am not a c/c++ programmer so I leave it to you.
Alsa works very well with multi-channel. I would take a look at the alsa sources for this alsa program that works out of the box:
speaker-test
I am not a c/c++ programmer so I leave it to you.