Ardour  9.0-pre0-582-g084a23a80d
AudioGrapher::Limiter Class Reference

#include <limiter.h>

Inheritance diagram for AudioGrapher::Limiter:
[legend]

Public Member Functions

 Limiter (float sample_rate, unsigned int channels, samplecnt_t)
 
 ~Limiter ()
 
void set_input_gain (float dB)
 
void set_threshold (float dB)
 
void set_release (float s)
 
void set_duration (samplecnt_t)
 
void set_result (ARDOUR::ExportAnalysisPtr)
 
void process (ProcessContext< float > const &ctx)
 
- Public Member Functions inherited from AudioGrapher::ListedSource< float >
void add_output (typename Source< float >::SinkPtr output)
 
void clear_outputs ()
 Removes all outputs added. More...
 
void remove_output (typename Source< float >::SinkPtr output)
 
- Public Member Functions inherited from AudioGrapher::Source< T >
virtual ~Source ()
 
virtual void add_output (SinkPtr output)=0
 Adds an output to this source. All data generated is forwarded to output. More...
 
virtual void remove_output (SinkPtr output)=0
 Removes a specific output from this source. More...
 
- Public Member Functions inherited from AudioGrapher::Sink< float >
virtual ~Sink ()
 
virtual void process (ProcessContext< float > &context)
 

Private Member Functions

void stats (samplecnt_t)
 

Private Attributes

bool _enabled
 
float * _buf
 
samplecnt_t _size
 
samplecnt_t _latency
 
samplecnt_t _cnt
 
samplecnt_t _spp
 
size_t _pos
 
ARDOUR::ExportAnalysisPtr _result
 
AudioGrapherDSP::Limiter _limiter
 

Additional Inherited Members

- Public Types inherited from AudioGrapher::Source< T >
typedef std::shared_ptr< Sink< T > > SinkPtr
 
- Protected Types inherited from AudioGrapher::ListedSource< float >
typedef std::list< typename Source< float >::SinkPtrSinkList
 
- Protected Member Functions inherited from AudioGrapher::ListedSource< float >
void output (ProcessContext< float > const &c)
 Helper for derived classes. More...
 
void output (ProcessContext< float > &c)
 
bool output_size_is_one ()
 
- Protected Member Functions inherited from AudioGrapher::Throwing< L >
 Throwing ()
 
bool throw_level (ThrowLevel level)
 
- Protected Attributes inherited from AudioGrapher::ListedSource< float >
SinkList outputs
 

Detailed Description

Definition at line 15 of file audiographer/general/limiter.h.

Constructor & Destructor Documentation

◆ Limiter()

AudioGrapher::Limiter::Limiter ( float  sample_rate,
unsigned int  channels,
samplecnt_t   
)

◆ ~Limiter()

AudioGrapher::Limiter::~Limiter ( )

Member Function Documentation

◆ process()

void AudioGrapher::Limiter::process ( ProcessContext< float > const &  context)
virtual

Process given data. The data can not be modified, so in-place processing is not allowed. At least this function must be implemented by deriving classes

Implements AudioGrapher::Sink< float >.

◆ set_duration()

void AudioGrapher::Limiter::set_duration ( samplecnt_t  )

◆ set_input_gain()

void AudioGrapher::Limiter::set_input_gain ( float  dB)

◆ set_release()

void AudioGrapher::Limiter::set_release ( float  s)

◆ set_result()

void AudioGrapher::Limiter::set_result ( ARDOUR::ExportAnalysisPtr  )

◆ set_threshold()

void AudioGrapher::Limiter::set_threshold ( float  dB)

◆ stats()

void AudioGrapher::Limiter::stats ( samplecnt_t  )
private

Member Data Documentation

◆ _buf

float* AudioGrapher::Limiter::_buf
private

Definition at line 38 of file audiographer/general/limiter.h.

◆ _cnt

samplecnt_t AudioGrapher::Limiter::_cnt
private

Definition at line 42 of file audiographer/general/limiter.h.

◆ _enabled

bool AudioGrapher::Limiter::_enabled
private

Definition at line 37 of file audiographer/general/limiter.h.

◆ _latency

samplecnt_t AudioGrapher::Limiter::_latency
private

Definition at line 40 of file audiographer/general/limiter.h.

◆ _limiter

AudioGrapherDSP::Limiter AudioGrapher::Limiter::_limiter
private

Definition at line 47 of file audiographer/general/limiter.h.

◆ _pos

size_t AudioGrapher::Limiter::_pos
private

Definition at line 44 of file audiographer/general/limiter.h.

◆ _result

ARDOUR::ExportAnalysisPtr AudioGrapher::Limiter::_result
private

Definition at line 46 of file audiographer/general/limiter.h.

◆ _size

samplecnt_t AudioGrapher::Limiter::_size
private

Definition at line 39 of file audiographer/general/limiter.h.

◆ _spp

samplecnt_t AudioGrapher::Limiter::_spp
private

Definition at line 43 of file audiographer/general/limiter.h.


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