Skip to content

Commit

Permalink
Fixing documentation issue naudio#329
Browse files Browse the repository at this point in the history
  • Loading branch information
markheath authored May 10, 2018
1 parent 10e188d commit 902b589
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Docs/EnumerateOutputDevices.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ for (int n = -1; n < WaveOut.DeviceCount; n++)
}
```

Once you've selected the device you want, you can open it by passing the device number into the `WaveOut` or `WaveOutEvent` constructor:
Once you've selected the device you want, you can open it by creating an instance of `WaveOut` or `WaveOutEvent` and specifying it as the `DeviceNumber`:

```c#
var outputDevice = new WaveOutEvent(deviceNumber);
var outputDevice = new WaveOutEvent() { DeviceNumber = deviceNumber };
```

# WaveIn or WaveInEvent
Expand All @@ -36,10 +36,10 @@ for (int n = -1; n < WaveIn.DeviceCount; n++)
}
```

Once you've selected the device you want, you can open it by passing the device number into the `WaveIn` or `WaveInEvent` constructor:
Once you've selected the device you want, you can open it by creating an instance of `WaveIn` or `WaveInEvent` and specifying it as the `DeviceNumber`:

```c#
var recordingDevice = new WaveInEvent(deviceNumber);
var recordingDevice = new WaveInEvent() { DeviceNumber = deviceNumber };
```

# DirectSoundOut
Expand Down

0 comments on commit 902b589

Please sign in to comment.