Browse Source
Merge pull request #857 from ameyasd007/documentation-issues
Update ConvertBetweenStereoAndMono.md
pull/741/merge
Mark Heath
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
Docs/ConvertBetweenStereoAndMono.md
|
|
@ -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); |
|
|
|