Ardour
9.0-pre0-582-g084a23a80d
|
#include <sink.h>
Public Member Functions | |
virtual | ~Sink () |
virtual void | process (ProcessContext< T > const &context)=0 |
virtual void | process (ProcessContext< T > &context) |
A sink for data This is a pure virtual interface for all data sinks in AudioGrapher
|
inlinevirtual |
|
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 >.
|
pure 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
Implemented in AudioGrapher::Interleaver< T >::Input, AudioGrapher::Limiter, AudioGrapher::DemoNoiseAdder, AudioGrapher::SampleFormatConverter< TOut >, AudioGrapher::SampleRateConverter, AudioGrapher::PeakReader, AudioGrapher::Normalizer, AudioGrapher::LoudnessReader, AudioGrapher::Analyser, AudioGrapher::SndfileWriter< DefaultSampleType >, ProcessContextGrabber< T >, AppendingVectorSink< T >, VectorSink< T >, and ThrowingSink< T >.