Table of Contents

Class Wave32To16Stream

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

WaveStream that converts 32 bit audio back down to 16 bit, clipping if necessary

public class Wave32To16Stream : WaveStream, IDisposable, IAsyncDisposable, IWaveProvider
Inheritance
Wave32To16Stream
Implements
Inherited Members
Extension Methods

Constructors

Wave32To16Stream(WaveStream)

Creates a new Wave32To16Stream

public Wave32To16Stream(WaveStream sourceStream)

Parameters

sourceStream WaveStream

the source stream

Properties

BlockAlign

public override int BlockAlign { get; }

Property Value

int

Clip

Clip indicator. Can be reset.

public bool Clip { get; set; }

Property Value

bool

Length

Returns the stream length

public override long Length { get; }

Property Value

long

Position

Gets or sets the current position in the stream

public override long Position { get; set; }

Property Value

long

Volume

Sets the volume for this stream. 1.0f is full scale

public float Volume { get; set; }

Property Value

float

WaveFormat

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 bytes from this wave stream

public override int Read(byte[] destBuffer, int offset, int numBytes)

Parameters

destBuffer byte[]

Destination buffer

offset int

Offset into destination buffer

numBytes int

Returns

int

Number of bytes read.