Skip to content

Commit

Permalink
Update ConvertBetweenStereoAndMono.md
Browse files Browse the repository at this point in the history
Corrected the object name from 'stereo' to ' mono' in the sample code for Stereo to Mono
  • Loading branch information
ameyasd007 authored Dec 8, 2021
1 parent 03b46c7 commit cfdc05f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Docs/ConvertBetweenStereoAndMono.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ using(var inputReader = new AudioFileReader(stereoFilePath))
{
// convert our stereo ISampleProvider to mono
var mono = new StereoToMonoSampleProvider(inputReader);
stereo.LeftVolume = 0.0f; // discard the left channel
stereo.RightVolume = 1.0f; // keep the right channel
mono.LeftVolume = 0.0f; // discard the left channel
mono.RightVolume = 1.0f; // keep the right channel
// can either use this for playback:
myOutputDevice.Init(mono);
Expand Down

0 comments on commit cfdc05f

Please sign in to comment.