Class SimpleCompressorEffect
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
ISampleProviderSource stream
Properties
Attack
Attack time
public double Attack { get; set; }
Property Value
Enabled
Turns gain on or off
public bool Enabled { get; set; }
Property Value
MakeUpGain
Make-up Gain
public double MakeUpGain { get; set; }
Property Value
Ratio
Ratio
public double Ratio { get; set; }
Property Value
Release
Release time
public double Release { get; set; }
Property Value
Threshold
Threshold
public double Threshold { get; set; }
Property Value
WaveFormat
Gets the WaveFormat of this stream
public WaveFormat WaveFormat { get; }
Property Value
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
intOffset in array to read into
count
intNumber of bytes to read
Returns
- int
Number of bytes read