We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2dbbba commit 6083025Copy full SHA for 6083025
1 file changed
Project-Aurora/Project-Aurora/Modules/AudioCapture/AudioDeviceProxy.cs
@@ -127,7 +127,10 @@ private void SetDevice([CanBeNull] MMDevice mmDevice)
127
{
128
// Get a WaveIn from the device and start it, adding any events as requied
129
WaveIn = Flow == DataFlow.Render ? new WasapiLoopbackCapture(mmDevice) : new WasapiCapture(mmDevice);
130
- WaveIn.DataAvailable += _waveInDataAvailable;
+ if (_waveInDataAvailable != null)
131
+ {
132
+ WaveIn.DataAvailable += _waveInDataAvailable;
133
+ }
134
WaveIn.RecordingStopped += WaveInOnRecordingStopped;
135
136
//"Activate" device
0 commit comments