This project has moved and is read-only. For the latest updates, please go here.

How to user StereoToMonoProvider

Mar 7, 2013 at 9:12 PM
I am trying to get SteroToMonoProvider to work. So have I have there working.
private WaveFormat _waveFormat = new WaveFormat(44100, 16, 2);

_waveProvider1 = new BufferedWaveProvider(_waveFormat);
_waveProvider1.BufferDuration = new TimeSpan(_bufferHours,
_waveProvider1.DiscardOnBufferOverflow = true;
_StereoToMono1 = new StereoToMonoProvider16(_waveProvider1);


_StereoToMono1.LeftVolume = 0;
_StereoToMono1.RightVolume = 1;
I am streaming Audio into the BufferedWaveProvider. The wav files I am streaming at 16bit PCM at 44kHz 2 Channel.

So when I set the StereoToMono1.LeftVolume to zero and the RightVolume to 1 the sound does not shift to the right side.

Mar 7, 2013 at 9:16 PM
that's because it's mono. Mono is the same in both speakers. You want to go mono to stereo instead.
Mar 7, 2013 at 9:36 PM
So I switched to use a MonoToStereoProvider class and get the "Source must be Mono"?
Mar 7, 2013 at 9:38 PM
yes, MonoToStereo takes mono in and gives stereo out. You want stereo in and stereo out,, but with the channels swapped about a bit from the sounds of it. You'd need to make a custom provider to do that.
Mar 7, 2013 at 9:50 PM
Yeah I want to take a stereo input and then only hear the left or the right channel.

Do I need to create a provider to do that?