Ardour  9.0-pre0-386-g96ef4d20f2
AudioGrapher::LoudnessReader Class Reference

#include <loudness_reader.h>

Inheritance diagram for AudioGrapher::LoudnessReader:
[legend]

Public Member Functions

 LoudnessReader (float sample_rate, unsigned int channels, samplecnt_t bufsize)
 
 ~LoudnessReader ()
 
void reset ()
 
float calc_peak (float target_lufs=-23, float target_dbtp=-1) const
 
bool get_loudness (float *integrated, float *short_term=NULL, float *momentary=NULL) const
 
virtual void process (ProcessContext< float > const &c)
 
- 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)
 

Protected Attributes

Vamp::Plugin * _ebur_plugin
 
std::vector< Vamp::Plugin * > _dbtp_plugins
 
float _sample_rate
 
unsigned int _channels
 
samplecnt_t _bufsize
 
samplecnt_t _pos
 
float * _bufs [2]
 
- Protected Attributes inherited from AudioGrapher::ListedSource< float >
SinkList outputs
 

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 ()
 

Detailed Description

Definition at line 34 of file loudness_reader.h.

Constructor & Destructor Documentation

◆ LoudnessReader()

AudioGrapher::LoudnessReader::LoudnessReader ( float  sample_rate,
unsigned int  channels,
samplecnt_t  bufsize 
)

◆ ~LoudnessReader()

AudioGrapher::LoudnessReader::~LoudnessReader ( )

Member Function Documentation

◆ calc_peak()

float AudioGrapher::LoudnessReader::calc_peak ( float  target_lufs = -23,
float  target_dbtp = -1 
) const

◆ get_loudness()

bool AudioGrapher::LoudnessReader::get_loudness ( float *  integrated,
float *  short_term = NULL,
float *  momentary = NULL 
) const

◆ process()

virtual void AudioGrapher::LoudnessReader::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 >.

Reimplemented in AudioGrapher::Analyser.

◆ reset()

void AudioGrapher::LoudnessReader::reset ( )

Member Data Documentation

◆ _bufs

float* AudioGrapher::LoudnessReader::_bufs[2]
protected

Definition at line 57 of file loudness_reader.h.

◆ _bufsize

samplecnt_t AudioGrapher::LoudnessReader::_bufsize
protected

Definition at line 55 of file loudness_reader.h.

◆ _channels

unsigned int AudioGrapher::LoudnessReader::_channels
protected

Definition at line 54 of file loudness_reader.h.

◆ _dbtp_plugins

std::vector<Vamp::Plugin*> AudioGrapher::LoudnessReader::_dbtp_plugins
protected

Definition at line 51 of file loudness_reader.h.

◆ _ebur_plugin

Vamp::Plugin* AudioGrapher::LoudnessReader::_ebur_plugin
protected

Definition at line 50 of file loudness_reader.h.

◆ _pos

samplecnt_t AudioGrapher::LoudnessReader::_pos
protected

Definition at line 56 of file loudness_reader.h.

◆ _sample_rate

float AudioGrapher::LoudnessReader::_sample_rate
protected

Definition at line 53 of file loudness_reader.h.


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