Table of Contents

Class SimpleCompressorEffect

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

A simple compressor

public class SimpleCompressorEffect : ISampleProvider
Inheritance
SimpleCompressorEffect
Implements
Inherited Members
Extension Methods

Constructors

SimpleCompressorEffect(ISampleProvider)

Create a new simple compressor stream

public SimpleCompressorEffect(ISampleProvider sourceStream)

Parameters

sourceStream ISampleProvider

Source stream

Properties

Attack

Attack time

public double Attack { get; set; }

Property Value

double

Enabled

Turns gain on or off

public bool Enabled { get; set; }

Property Value

bool

MakeUpGain

Make-up Gain

public double MakeUpGain { get; set; }

Property Value

double

Ratio

Ratio

public double Ratio { get; set; }

Property Value

double

Release

Release time

public double Release { get; set; }

Property Value

double

Threshold

Threshold

public double Threshold { get; set; }

Property Value

double

WaveFormat

Gets the WaveFormat of this stream

public WaveFormat WaveFormat { get; }

Property Value

WaveFormat

Methods

Read(float[], int, int)

Reads bytes from this stream

public int Read(float[] array, int offset, int count)

Parameters

array float[]

Buffer to read into

offset int

Offset in array to read into

count int

Number of bytes to read

Returns

int

Number of bytes read