Xeno-rat
|
Converts 16 bit PCM to IEEE float, optionally adjusting volume along the way. More...
Public Member Functions | |
Wave16ToFloatProvider (IWaveProvider sourceProvider) | |
Creates a new Wave16toFloatProvider. | |
int | Read (byte[] destBuffer, int offset, int numBytes) |
Reads audio data from the source buffer, converts it to floating point, applies volume scaling, and writes the result to the destination buffer. | |
Properties | |
WaveFormat | WaveFormat [get] |
IWaveProvider.WaveFormat | |
float | Volume [get, set] |
Volume of this channel. 1.0 = full scale. | |
Properties inherited from NAudio.Wave.IWaveProvider |
Private Attributes | |
IWaveProvider | sourceProvider |
readonly WaveFormat | waveFormat |
volatile float | volume |
byte[] | sourceBuffer |
Converts 16 bit PCM to IEEE float, optionally adjusting volume along the way.
|
inline |
Creates a new Wave16toFloatProvider.
sourceProvider | the source provider |
|
inline |
Reads audio data from the source buffer, converts it to floating point, applies volume scaling, and writes the result to the destination buffer.
destBuffer | The destination buffer to write the converted audio data to. |
offset | The offset in the destination buffer at which to start writing the converted audio data. |
numBytes | The number of bytes to read and convert from the source buffer. |
Implements NAudio.Wave.IWaveProvider.
|
private |
|
private |
|
private |
|
private |
|
getset |
Volume of this channel. 1.0 = full scale.
|
get |
Implements NAudio.Wave.IWaveProvider.