Class BlockAlignReductionStream
Helper stream that lets us read from compressed audio files with large block alignment as though we could read any amount and reposition anywhere
public class BlockAlignReductionStream : WaveStream, IDisposable, IAsyncDisposable, IWaveProvider
- Inheritance
-
BlockAlignReductionStream
- Implements
- Inherited Members
- Extension Methods
Constructors
BlockAlignReductionStream(WaveStream)
Creates a new BlockAlignReductionStream
public BlockAlignReductionStream(WaveStream sourceStream)
Parameters
sourceStream
WaveStreamthe input stream
Properties
BlockAlign
Block alignment of this stream
public override int BlockAlign { get; }
Property Value
Length
Length of this Stream
public override long Length { get; }
Property Value
Position
Current position within stream
public override long Position { get; set; }
Property Value
WaveFormat
Wave Format
public override WaveFormat WaveFormat { get; }
Property Value
Methods
Dispose(bool)
Disposes this WaveStream
protected override void Dispose(bool disposing)
Parameters
disposing
bool
Read(byte[], int, int)
Reads data from this stream
public override int Read(byte[] buffer, int offset, int count)