Silence producing wave provider Useful for playing silence when doing a WASAPI Loopback Capture.
More...
|
| SilenceProvider (WaveFormat wf) |
| Creates a new silence producing wave provider.
|
|
int | Read (byte[] buffer, int offset, int count) |
| Clears the specified range of elements in the buffer array and returns the number of elements cleared.
|
|
Silence producing wave provider Useful for playing silence when doing a WASAPI Loopback Capture.
◆ SilenceProvider()
NAudio.Wave.SilenceProvider.SilenceProvider |
( |
WaveFormat | wf | ) |
|
|
inline |
Creates a new silence producing wave provider.
- Parameters
-
wf | Desired WaveFormat (should be PCM / IEE float |
◆ Read()
int NAudio.Wave.SilenceProvider.Read |
( |
byte[] | buffer, |
|
|
int | offset, |
|
|
int | count ) |
|
inline |
Clears the specified range of elements in the buffer array and returns the number of elements cleared.
- Parameters
-
buffer | The array containing the elements to be cleared. |
offset | The zero-based starting index of the range of elements to clear. |
count | The number of elements to clear. |
- Returns
- The number of elements cleared, which is equal to count .
Implements NAudio.Wave.IWaveProvider.
◆ WaveFormat
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/Wave/WaveProviders/SilenceWaveProvider.cs