audio
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
hi, does anyone know if I can record just, for example right channel using direct sound? Is there any direct sound function where I select which channel i want to get. thank you
viliam
Set the capture format to whatever multi-channel format you are capturing. The recording format would be single channel of same sample-rate/bits-per-sample as the capture format (you could, of course, convert the source samples to a different format as well). The source samples for each channel will be interleaved. If capturing 2 channel 16-bit audio you'd have two bytes left, two bytes right, two bytes left, etc. If you wanted just to record just the right channel then just write the right-channel samples. Make sense? Mark