diff options
Diffstat (limited to 'Examples/MicrophoneCS/MicrophoneCS.cs')
| -rw-r--r-- | Examples/MicrophoneCS/MicrophoneCS.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Examples/MicrophoneCS/MicrophoneCS.cs b/Examples/MicrophoneCS/MicrophoneCS.cs index c095ee1..8c3845a 100644 --- a/Examples/MicrophoneCS/MicrophoneCS.cs +++ b/Examples/MicrophoneCS/MicrophoneCS.cs @@ -33,7 +33,10 @@ namespace MicrophoneCS if( cla.captureDeviceIndex < 0 || cla.captureDeviceIndex >= devices.Length ) throw new ApplicationException( $"Capture device index is out of range; the valid range is [ 0 .. {devices.Length - 1} ]" ); - using iAudioCapture captureDev = mf.openCaptureDevice( devices[ cla.captureDeviceIndex ] ); + sCaptureParams cp = new sCaptureParams(); + if( cla.diarize ) + cp.flags |= eCaptureFlags.Stereo; + using iAudioCapture captureDev = mf.openCaptureDevice( devices[ cla.captureDeviceIndex ], cp ); using iModel model = Library.loadModel( cla.model ); using Context context = model.createContext(); |
