Xeno-rat
Loading...
Searching...
No Matches
NAudio.Wave.SilenceProvider Class Reference

Silence producing wave provider Useful for playing silence when doing a WASAPI Loopback Capture. More...

Inheritance diagram for NAudio.Wave.SilenceProvider:
Collaboration diagram for NAudio.Wave.SilenceProvider:

Public Member Functions

 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.
 

Properties

WaveFormat WaveFormat [get, private set]
 WaveFormat of this silence producing wave provider.
 
- Properties inherited from NAudio.Wave.IWaveProvider

Detailed Description

Silence producing wave provider Useful for playing silence when doing a WASAPI Loopback Capture.

Constructor & Destructor Documentation

◆ SilenceProvider()

NAudio.Wave.SilenceProvider.SilenceProvider ( WaveFormat wf)
inline

Creates a new silence producing wave provider.

Parameters
wfDesired WaveFormat (should be PCM / IEE float

Member Function Documentation

◆ 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
bufferThe array containing the elements to be cleared.
offsetThe zero-based starting index of the range of elements to clear.
countThe number of elements to clear.
Returns
The number of elements cleared, which is equal to count .

Implements NAudio.Wave.IWaveProvider.

Property Documentation

◆ WaveFormat

WaveFormat NAudio.Wave.SilenceProvider.WaveFormat
getprivate set

WaveFormat of this silence producing wave provider.

Implements NAudio.Wave.IWaveProvider.


The documentation for this class was generated from the following file: