IWaveProvider that passes through an ACM Codec.
More...
|
virtual void | Dispose (bool disposing) |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
IWaveProvider that passes through an ACM Codec.
◆ WaveFormatConversionProvider()
NAudio.Wave.WaveFormatConversionProvider.WaveFormatConversionProvider |
( |
WaveFormat | targetFormat, |
|
|
IWaveProvider | sourceProvider ) |
|
inline |
Create a new WaveFormat conversion stream.
- Parameters
-
targetFormat | Desired output format |
sourceProvider | Source Provider |
◆ ~WaveFormatConversionProvider()
NAudio.Wave.WaveFormatConversionProvider.~WaveFormatConversionProvider |
( |
| ) |
|
|
inlineprivate |
◆ Dispose() [1/2]
void NAudio.Wave.WaveFormatConversionProvider.Dispose |
( |
| ) |
|
|
inline |
◆ Dispose() [2/2]
virtual void NAudio.Wave.WaveFormatConversionProvider.Dispose |
( |
bool | disposing | ) |
|
|
inlineprotectedvirtual |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
This method calls the Dispose(Boolean) method, passing in 'true', and suppresses the finalization of the object.
◆ Read()
int NAudio.Wave.WaveFormatConversionProvider.Read |
( |
byte[] | buffer, |
|
|
int | offset, |
|
|
int | count ) |
|
inline |
Reads data from the input buffer and returns the number of bytes read.
- Parameters
-
buffer | The input buffer to read data from. |
offset | The zero-based byte offset in buffer at which to begin reading. |
count | The maximum number of bytes to read. |
- Returns
- The total number of bytes read into the buffer.
This method reads data from the input buffer and returns the total number of bytes read into the buffer. It ensures that the count is a multiple of the block align, and if not, it adjusts the count to read complete blocks. The method then proceeds to copy any leftover destination bytes, followed by converting one full source buffer and saving any leftover bytes for the next call to Read. The method returns the total number of bytes read into the buffer.
Implements NAudio.Wave.IWaveProvider.
◆ Reposition()
void NAudio.Wave.WaveFormatConversionProvider.Reposition |
( |
| ) |
|
|
inline |
Repositions the conversion stream and resets leftover bytes and offsets.
◆ conversionStream
readonly AcmStream NAudio.Wave.WaveFormatConversionProvider.conversionStream |
|
private |
◆ isDisposed
bool NAudio.Wave.WaveFormatConversionProvider.isDisposed |
|
private |
◆ leftoverDestBytes
int NAudio.Wave.WaveFormatConversionProvider.leftoverDestBytes |
|
private |
◆ leftoverDestOffset
int NAudio.Wave.WaveFormatConversionProvider.leftoverDestOffset |
|
private |
◆ leftoverSourceBytes
int NAudio.Wave.WaveFormatConversionProvider.leftoverSourceBytes |
|
private |
◆ preferredSourceReadSize
readonly int NAudio.Wave.WaveFormatConversionProvider.preferredSourceReadSize |
|
private |
◆ sourceProvider
readonly IWaveProvider NAudio.Wave.WaveFormatConversionProvider.sourceProvider |
|
private |
◆ WaveFormat
WaveFormat NAudio.Wave.WaveFormatConversionProvider.WaveFormat |
|
get |
The documentation for this class was generated from the following file: