Jamoma API  0.6.0.a19
TTSpatBaseRenderer Class Referenceabstract

TTSpatBaseRenderer defines the basic interface from which all renderers inherit. More...

#include <TTSpatBaseRenderer.h>

+ Inheritance diagram for TTSpatBaseRenderer:
+ Collaboration diagram for TTSpatBaseRenderer:

Public Member Functions

 TTSpatBaseRenderer ()
 Constructor. More...
 
virtual ~TTSpatBaseRenderer ()
 Destructor.
 
virtual void recalculateMatrixCoefficients (TTSpatSourceVector &sources, TTSpatSinkVector &sinks)=0
 This method must be defined by subclasses. More...
 
virtual TTErr processAudio (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
 A standard matrix-based audio processing method which may be used for matrix-based spatialization algorithms. More...
 

Public Attributes

TTSampleMatrixPtr mMixerMatrixCoefficients
 A matrix holding all coefficient for matrix-based mixing of sources to sinks.
 

Detailed Description

TTSpatBaseRenderer defines the basic interface from which all renderers inherit.

Definition at line 29 of file TTSpatBaseRenderer.h.

Constructor & Destructor Documentation

TTSpatBaseRenderer::TTSpatBaseRenderer ( )

Constructor.

Methods for TTSpatSnapRenderer: //////////////////////.

Definition at line 22 of file TTSpatBaseRenderer.cpp.

References mMixerMatrixCoefficients, and TTObjectBaseInstantiate().

+ Here is the call graph for this function:

Member Function Documentation

TTErr TTSpatBaseRenderer::processAudio ( TTAudioSignalArrayPtr  inputs,
TTAudioSignalArrayPtr  outputs 
)
virtual

A standard matrix-based audio processing method which may be used for matrix-based spatialization algorithms.

Subclasses using other techniques may override this method.

Parameters
inputsIncomming audio signals to process from sound sources.
outputsProcessed audio signals passed to the sinks.
Returns
TTErr error code if the method fails to execute, else kTTErrNone.

Definition at line 35 of file TTSpatBaseRenderer.cpp.

References TTAudioSignal::clear(), TTMatrixBase::get2d(), TTMatrixBase::getColumnCount(), TTMatrixBase::getRowCount(), kTTErrNone, mMixerMatrixCoefficients, TTAudioSignal::mSampleVectors, and TTAudioSignal::setMaxNumChannels().

+ Here is the call graph for this function:

virtual void TTSpatBaseRenderer::recalculateMatrixCoefficients ( TTSpatSourceVector sources,
TTSpatSinkVector sinks 
)
pure virtual

This method must be defined by subclasses.

This method also takes care of matrix resizing if the number of sources or sinks change.

Parameters
sourcesA vector of sources
sinksA vector of sinks

Implemented in TTSpatDBAPRenderer, and TTSpatSnapRenderer.

Referenced by TTSpatBase::getOneSinkPosition(), TTSpatBase::setOneSourcePosition(), TTSpatBase::setSinkCount(), and TTSpatBase::setSourceCount().


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