Skip to content

Commit

Permalink
Merge pull request #857 from ameyasd007/documentation-issues
Browse files Browse the repository at this point in the history
Update ConvertBetweenStereoAndMono.md
  • Loading branch information
markheath authored Jan 3, 2022
2 parents 03b46c7 + cfdc05f commit 7408d5a
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 7408d5a

Please sign in to comment.