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

Buffered WaveProvider taking source data from WaveIn. More...

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

Public Member Functions

 WaveInProvider (IWaveIn waveIn)
 Creates a new WaveInProvider n.b. Should make sure the WaveFormat is set correctly on IWaveIn before calling.
 
int Read (byte[] buffer, int offset, int count)
 Reads a sequence of bytes from the current BufferedWaveProvider and advances the position within the buffer by the number of bytes read.
 

Properties

WaveFormat WaveFormat [get]
 The WaveFormat.
 
- Properties inherited from NAudio.Wave.IWaveProvider

Private Member Functions

void OnDataAvailable (object sender, WaveInEventArgs e)
 Adds the available data to the buffered wave provider.
 

Private Attributes

readonly IWaveIn waveIn
 
readonly BufferedWaveProvider bufferedWaveProvider
 

Detailed Description

Buffered WaveProvider taking source data from WaveIn.

Constructor & Destructor Documentation

◆ WaveInProvider()

NAudio.Wave.WaveInProvider.WaveInProvider ( IWaveIn waveIn)
inline

Creates a new WaveInProvider n.b. Should make sure the WaveFormat is set correctly on IWaveIn before calling.

Parameters
waveInThe source of wave data
Here is the call graph for this function:

Member Function Documentation

◆ OnDataAvailable()

void NAudio.Wave.WaveInProvider.OnDataAvailable ( object sender,
WaveInEventArgs e )
inlineprivate

Adds the available data to the buffered wave provider.

Parameters
senderThe object that raised the event.
eAn object that contains the event data.

This method adds the available data from the e to the bufferedWaveProvider .

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Read()

int NAudio.Wave.WaveInProvider.Read ( byte[] buffer,
int offset,
int count )
inline

Reads a sequence of bytes from the current BufferedWaveProvider and advances the position within the buffer by the number of bytes read.

Parameters
bufferAn array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.
offsetThe zero-based byte offset in buffer at which to begin storing the data read from the current source.
countThe maximum number of bytes to read.
Returns
The total number of bytes read into the buffer. This might be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream is reached.

Implements NAudio.Wave.IWaveProvider.

Here is the call graph for this function:

Member Data Documentation

◆ bufferedWaveProvider

readonly BufferedWaveProvider NAudio.Wave.WaveInProvider.bufferedWaveProvider
private

◆ waveIn

readonly IWaveIn NAudio.Wave.WaveInProvider.waveIn
private

Property Documentation

◆ WaveFormat

WaveFormat NAudio.Wave.WaveInProvider.WaveFormat
get

The WaveFormat.

Implements NAudio.Wave.IWaveProvider.


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