#include <AsyncAudioCompressor.h>

This audio pipe component is mostly untested and is based on some ripped off code which I really have not checked how it performs or if it works at all...
Definition at line 169 of file AsyncAudioCompressor.h.
| Async::AudioCompressor::AudioCompressor | ( | void | ) |
Default constuctor.
| Async::AudioCompressor::~AudioCompressor | ( | void | ) |
Destructor.
| virtual void Async::AudioCompressor::processSamples | ( | float * | dest, | |
| const float * | src, | |||
| int | count | |||
| ) | [protected, virtual] |
Process incoming samples and put them into the output buffer.
| dest | Destination buffer | |
| src | Source buffer | |
| count | Number of samples in the source buffer |
Implements Async::AudioProcessor.
| void Async::AudioCompressor::reset | ( | void | ) |
Reset the compressor.
| void Async::AudioCompressor::setAttack | ( | double | attack_ms | ) | [inline] |
Set the compressor attack time.
| attack_ms | The attack time in milliseconds |
Definition at line 201 of file AsyncAudioCompressor.h.
References Async::EnvelopeDetector::setTc().
| void Async::AudioCompressor::setDecay | ( | double | decay_ms | ) | [inline] |
Set the compressor decay time.
| decay_ms | The decay time in milliseconds |
Definition at line 207 of file AsyncAudioCompressor.h.
References Async::EnvelopeDetector::setTc().
| void Async::AudioCompressor::setOutputGain | ( | float | gain | ) |
Set the output gain.
| gain | The gain to set. |
| void Async::AudioCompressor::setRatio | ( | double | ratio | ) | [inline] |
Set the compression ratio.
| ratio | The compression ratio (ex 0.1 == 10:1) |
Definition at line 195 of file AsyncAudioCompressor.h.
| void Async::AudioCompressor::setThreshold | ( | double | thresh_db | ) | [inline] |
Set the compression threshold.
| thresh_db | The compression threshold in dB |
Definition at line 189 of file AsyncAudioCompressor.h.
1.5.7.1