Xeno-rat
Loading...
Searching...
No Matches
NAudio.Wave.WaveProvider16 Class Referenceabstract

Base class for creating a 16 bit wave provider. More...

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

Public Member Functions

 WaveProvider16 ()
 Initializes a new instance of the WaveProvider16 class defaulting to 44.1kHz mono.
 
 WaveProvider16 (int sampleRate, int channels)
 Initializes a new instance of the WaveProvider16 class with the specified sample rate and number of channels.
 
void SetWaveFormat (int sampleRate, int channels)
 Sets the wave format using the specified sample rate and number of channels.
 
int Read (byte[] buffer, int offset, int count)
 Reads a specified number of samples from the buffer starting at the specified offset.
 
int Read (short[] buffer, int offset, int sampleCount)
 Method to override in derived classes Supply the requested number of samples into the buffer.
 

Properties

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

Private Attributes

WaveFormat waveFormat
 

Detailed Description

Base class for creating a 16 bit wave provider.

Constructor & Destructor Documentation

◆ WaveProvider16() [1/2]

NAudio.Wave.WaveProvider16.WaveProvider16 ( )
inline

Initializes a new instance of the WaveProvider16 class defaulting to 44.1kHz mono.

◆ WaveProvider16() [2/2]

NAudio.Wave.WaveProvider16.WaveProvider16 ( int sampleRate,
int channels )
inline

Initializes a new instance of the WaveProvider16 class with the specified sample rate and number of channels.

Here is the call graph for this function:

Member Function Documentation

◆ Read() [1/2]

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

Reads a specified number of samples from the buffer starting at the specified offset.

Parameters
bufferThe buffer containing the samples to be read.
offsetThe zero-based offset in the buffer at which to begin reading samples.
sampleCountThe number of samples to read from the buffer.
Returns
The number of samples read from the buffer.

Implements NAudio.Wave.IWaveProvider.

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

◆ Read() [2/2]

int NAudio.Wave.WaveProvider16.Read ( short[] buffer,
int offset,
int sampleCount )
abstract

Method to override in derived classes Supply the requested number of samples into the buffer.

◆ SetWaveFormat()

void NAudio.Wave.WaveProvider16.SetWaveFormat ( int sampleRate,
int channels )
inline

Sets the wave format using the specified sample rate and number of channels.

Parameters
sampleRateThe sample rate for the wave format.
channelsThe number of channels for the wave format.

This method sets the wave format using the provided sample rate and number of channels.

Here is the caller graph for this function:

Member Data Documentation

◆ waveFormat

WaveFormat NAudio.Wave.WaveProvider16.waveFormat
private

Property Documentation

◆ WaveFormat

WaveFormat NAudio.Wave.WaveProvider16.WaveFormat
get

The Wave Format.

Implements NAudio.Wave.IWaveProvider.


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