This project has moved. For the latest updates, please go here.

Wasapi channels

Nov 28, 2013 at 3:26 PM
I have written an application to get audio off an external USB soundcard via the NAudio.WasapiCapture class and get audio back onto the soundcard via the NAudio.WasapiOut class. This soundcard has got two channels – left and right. Is there a way to specify in code which channel you are taking the audio from and which channel you are outputting the audio back onto the soundcard? So for instance would it be easy to specify taking audio off the left channel only and then outputting audio onto the right channel only?
Dec 2, 2013 at 10:22 AM
With Wasapi you record both channels, and then you can throw away audio from the channel you don't want.
Also, when you play, open the soundcard in stereo, and use a MonoToStereoWaveProvider or even a MultiplexingWaveprovider to control what you are sending to each channel.