Base class for creating a 16 bit wave provider.
More...
|
| 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.
|
|
Base class for creating a 16 bit wave provider.
◆ 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.
◆ 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
-
buffer | The buffer containing the samples to be read. |
offset | The zero-based offset in the buffer at which to begin reading samples. |
sampleCount | The number of samples to read from the buffer. |
- Returns
- The number of samples read from the buffer.
Implements NAudio.Wave.IWaveProvider.
◆ 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
-
sampleRate | The sample rate for the wave format. |
channels | The number of channels for the wave format. |
This method sets the wave format using the provided sample rate and number of channels.
◆ waveFormat
◆ 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/WaveProvider16.cs