27 #ifndef ASYNC_AUDIO_COMPRESSOR_INCLUDED
28 #define ASYNC_AUDIO_COMPRESSOR_INCLUDED
110 : sampleRate_( sampleRate ), ms_( ms ), coef_( 0.0 )
124 virtual double getTc(
void ) {
return ms_; }
129 sampleRate_ = sampleRate;
136 inline void run(
double in,
double &state )
138 state = in + coef_ * ( state - in );
148 coef_ = exp( -1.0 / ( 0.001 * ms_ * sampleRate_ ) );
226 virtual void processSamples(
float *dest,
const float *src,
int count);