Ardour  9.0-pre0-582-g084a23a80d
AudioGrapher::Sink< T > Class Template Referenceabstract

#include <sink.h>

Inheritance diagram for AudioGrapher::Sink< T >:
[legend]

Public Member Functions

virtual ~Sink ()
 
virtual void process (ProcessContext< T > const &context)=0
 
virtual void process (ProcessContext< T > &context)
 

Detailed Description

template<typename T>
class AudioGrapher::Sink< T >

A sink for data This is a pure virtual interface for all data sinks in AudioGrapher

Definition at line 17 of file sink.h.

Constructor & Destructor Documentation

◆ ~Sink()

template<typename T >
virtual AudioGrapher::Sink< T >::~Sink ( )
inlinevirtual

Definition at line 19 of file sink.h.

Member Function Documentation

◆ process() [1/2]

template<typename T >
virtual void AudioGrapher::Sink< T >::process ( ProcessContext< T > &  context)
inlinevirtual

Process given data Data may be modified, so in place processing is allowed. The default implementation calls the non-modifying version, so this function does not need to be overridden. However, if the sink can do in-place processing, overriding this is highly recommended.

If this is not overridden adding "using Sink<T>::process;" to the deriving class declaration is suggested to avoid warnings about hidden virtual functions.

Reimplemented in AudioGrapher::SampleFormatConverter< TOut >, AudioGrapher::Normalizer, and VectorSink< T >.

Definition at line 38 of file sink.h.

◆ process() [2/2]

template<typename T >
virtual void AudioGrapher::Sink< T >::process ( ProcessContext< T > const &  context)
pure virtual

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