A simple compressor.
More...
◆ SimpleCompressorEffect()
| NAudio.Wave.SimpleCompressorEffect.SimpleCompressorEffect |
( |
ISampleProvider | sourceStream | ) |
|
|
inline |
Create a new simple compressor stream.
- Parameters
-
| sourceStream | Source stream |
◆ Read()
| int NAudio.Wave.SimpleCompressorEffect.Read |
( |
float[] | array, |
|
|
int | offset, |
|
|
int | count ) |
|
inline |
Reads audio samples from the source stream into the specified array.
- Parameters
-
| array | The array to store the read samples. |
| offset | The zero-based byte offset in array at which to begin storing the data read from the current stream. |
| count | The maximum number of samples to read. |
- Returns
- The total number of samples read into the array.
- Exceptions
-
| System.IO.IOException | An I/O error occurs while reading from the source stream. |
This method locks the lockObject to ensure thread safety while reading from the source stream. It reads audio samples from the source stream into the specified array, processes them using the simple compressor if enabled, and returns the total number of samples read.
Implements NAudio.Wave.ISampleProvider.
◆ channels
| readonly int NAudio.Wave.SimpleCompressorEffect.channels |
|
private |
◆ lockObject
| readonly object NAudio.Wave.SimpleCompressorEffect.lockObject = new object() |
|
private |
◆ simpleCompressor
◆ sourceStream
◆ Attack
| double NAudio.Wave.SimpleCompressorEffect.Attack |
|
getset |
◆ Enabled
| bool NAudio.Wave.SimpleCompressorEffect.Enabled |
|
getset |
◆ MakeUpGain
| double NAudio.Wave.SimpleCompressorEffect.MakeUpGain |
|
getset |
◆ Ratio
| double NAudio.Wave.SimpleCompressorEffect.Ratio |
|
getset |
◆ Release
| double NAudio.Wave.SimpleCompressorEffect.Release |
|
getset |
◆ Threshold
| double NAudio.Wave.SimpleCompressorEffect.Threshold |
|
getset |
◆ WaveFormat
| WaveFormat NAudio.Wave.SimpleCompressorEffect.WaveFormat |
|
get |
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/Wave/WaveStreams/SimpleCompressorStream.cs