Table of Contents

Class BlockAlignReductionStream

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

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 WaveStream

the input stream

Properties

BlockAlign

Block alignment of this stream

public override int BlockAlign { get; }

Property Value

int

Length

Length of this Stream

public override long Length { get; }

Property Value

long

Position

Current position within stream

public override long Position { get; set; }

Property Value

long

WaveFormat

Wave Format

public override WaveFormat WaveFormat { get; }

Property Value

WaveFormat

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)

Parameters

buffer byte[]
offset int
count int

Returns

int