JackTrip
Public Member Functions | List of all members
Limiter Class Reference

Applies limiter_lad_mono from the faustlibraries distribution, compressors.lib. More...

#include <Limiter.h>

Inheritance diagram for Limiter:
Inheritance graph
[legend]
Collaboration diagram for Limiter:
Collaboration graph
[legend]

Public Member Functions

 Limiter (int numchans, int numclients, bool verboseFlag=false)
 The class constructor sets the number of channels to limit. More...
 
virtual ~Limiter ()
 The class destructor. More...
 
void init (int samplingRate) override
 Do proper Initialization of members and class instances. By default this initializes the Sampling Frequency. If a class instance depends on the sampling frequency, it should be initialize here. More...
 
int getNumInputs () override
 Return Number of Input Channels. More...
 
int getNumOutputs () override
 Return Number of Output Channels. More...
 
void compute (int nframes, float **inputs, float **outputs) override
 Compute process. More...
 
void setWarningAmplitude (double wa)
 
- Public Member Functions inherited from ProcessPlugin
 ProcessPlugin ()
 The Class Constructor. More...
 
virtual ~ProcessPlugin ()
 The Class Destructor. More...
 
virtual char * getName ()
 
virtual bool getInited ()
 
virtual void setVerbose (bool v)
 

Additional Inherited Members

- Protected Attributes inherited from ProcessPlugin
int fSamplingFreq
 Faust Data member, Sampling Rate. More...
 
bool inited = false
 
bool verbose = false
 

Detailed Description

Applies limiter_lad_mono from the faustlibraries distribution, compressors.lib.

The Limiter class confines the output dynamic range to a "dynamic range lane" determined by the assumed number of clients.

Constructor & Destructor Documentation

◆ Limiter()

Limiter::Limiter ( int  numchans,
int  numclients,
bool  verboseFlag = false 
)
inline

The class constructor sets the number of channels to limit.

◆ ~Limiter()

virtual Limiter::~Limiter ( )
inlinevirtual

The class destructor.

Member Function Documentation

◆ compute()

void Limiter::compute ( int  nframes,
float **  inputs,
float **  outputs 
)
overridevirtual

Compute process.

Implements ProcessPlugin.

◆ getNumInputs()

int Limiter::getNumInputs ( )
inlineoverridevirtual

Return Number of Input Channels.

Implements ProcessPlugin.

◆ getNumOutputs()

int Limiter::getNumOutputs ( )
inlineoverridevirtual

Return Number of Output Channels.

Implements ProcessPlugin.

◆ init()

void Limiter::init ( int  samplingRate)
inlineoverridevirtual

Do proper Initialization of members and class instances. By default this initializes the Sampling Frequency. If a class instance depends on the sampling frequency, it should be initialize here.

Reimplemented from ProcessPlugin.

◆ setWarningAmplitude()

void Limiter::setWarningAmplitude ( double  wa)
inline

The documentation for this class was generated from the following files: