#include <iso_synth_aep_unit.h>
Inherits iso::synth::ProcessUnit.
Inheritance diagram for iso::synth::AEPUnit:
Public Member Functions | |
AEPUnit (QVector< math::Vector3< sample > > &pSpeakerPositions) | |
default constructor | |
AEPUnit (const String &pName, QVector< math::Vector3< sample > > &pSpeakerPositions) | |
default constructor | |
AEPUnit (QVector< math::Vector3< sample > > &pSpeakerPositions, unsigned int pFrameCount, unsigned int pRate, FanInType pFanInType=FANIN_ADD) throw (SynthException) | |
name and parameter based constructor | |
AEPUnit (const String &pName, QVector< math::Vector3< sample > > &pSpeakerPositions, unsigned int pFrameCount, unsigned int pRate, FanInType pFanInType=FANIN_ADD) throw (SynthException) | |
name and parameter based constructor | |
AEPUnit (const AEPUnit &pUnit) | |
copy constructor | |
AEPUnit (const String &pName, const AEPUnit &pUnit) | |
name & copy constructor | |
AEPUnit (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
virtual | ~AEPUnit () |
destructor | |
void | setOrder (sample pOrder) |
set ambisonic order | |
virtual void | process (Buffer *pBuffer) throw (SynthException) |
processes buffer | |
virtual String | info (bool pPropagate=false, bool pShowPorts=true) const |
obtain textual unit information | |
Static Public Attributes | |
static const String | sClassName |
default name | |
Protected Member Functions | |
AEPUnit () | |
default constructor | |
void | init (const QVector< math::Vector3< sample > > &pSpeakerPositions) |
initializes unit | |
void | init (const AEPUnit &pUnit) |
initializes unit | |
Protected Attributes | |
ControlPort * | mSoundPosition |
total number of units created so far | |
sample | mOrder |
sound position control port | |
unsigned int | mSpeakerCount |
ambisonic order | |
math::Vector3< sample > * | mSpeakerPositions |
number of speakers | |
sample * | mInvSpeakerDistances |
speaker positions | |
sample * | mGains |
inverse speaker distances | |
sample * | mPrevGains |
audio gains for all speakers | |
sample | mInvFrameCount |
previous audio gains for all speakers (for linear interpolation) | |
Static Protected Attributes | |
static unsigned int | sUnitCount |
total number of units created so far | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const AEPUnit &pUnit) |
print unit information |
panning unit
This is unit works strictly with single channel audio only
Created by Daniel Bisig on 4/20/07.
AEPUnit::AEPUnit | ( | QVector< math::Vector3< sample > > & | pSpeakerPositions | ) |
default constructor
pSpeakerPositions | vector of speaker positions (cartesian coordinates) |
default constructor
pName | unit name | |
pSpeakerPositions | vector of speaker positions (cartesian coordinates) |
AEPUnit::AEPUnit | ( | QVector< math::Vector3< sample > > & | pSpeakerPositions, | |
unsigned int | pFrameCount, | |||
unsigned int | pRate, | |||
FanInType | pFanInType = FANIN_ADD | |||
) | throw (SynthException) |
name and parameter based constructor
pSpeakerPositions | speaker positions | |
pFrameCount | number of frames | |
pRate | samping rate | |
pFanInType | strategy for combining audio buffers in case this unit is connected to several units |
AEPUnit::AEPUnit | ( | const String & | pName, | |
QVector< math::Vector3< sample > > & | pSpeakerPositions, | |||
unsigned int | pFrameCount, | |||
unsigned int | pRate, | |||
FanInType | pFanInType = FANIN_ADD | |||
) | throw (SynthException) |
name and parameter based constructor
pName | unit name | |
pSpeakerPositions | speaker positions | |
pFrameCount | number of frames | |
pRate | samping rate | |
pFanInType | strategy for combining audio buffers in case this unit is connected to several units |
AEPUnit::AEPUnit | ( | const AEPUnit & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
AEPUnit::AEPUnit | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
AEPUnit::~AEPUnit | ( | ) | [virtual] |
destructor
AEPUnit::AEPUnit | ( | ) | [protected] |
default constructor
void AEPUnit::setOrder | ( | sample | pOrder | ) |
set ambisonic order
pOrder | (ambisonic order) |
void AEPUnit::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
processes buffer
pBuffer | buffer to process |
Reimplemented from iso::synth::ProcessUnit.
base::String AEPUnit::info | ( | bool | pPropagate = false , |
|
bool | pShowPorts = true | |||
) | const [virtual] |
obtain textual unit information
pPropagate | if true, the unit calls the info methods of its input ports | |
pShowPorts | print port information |
Reimplemented from iso::synth::ProcessUnit.
void AEPUnit::init | ( | const QVector< math::Vector3< sample > > & | pSpeakerPositions | ) | [protected] |
initializes unit
pSpeakerPositions | speaker positions |
void AEPUnit::init | ( | const AEPUnit & | pUnit | ) | [protected] |
initializes unit
pUnit | unit to copy settings from |
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const AEPUnit & | pUnit | |||
) | [friend] |
print unit information
const base::String AEPUnit::sClassName [static] |
unsigned int AEPUnit::sUnitCount [static, protected] |
ControlPort* iso::synth::AEPUnit::mSoundPosition [protected] |
total number of units created so far
sample iso::synth::AEPUnit::mOrder [protected] |
sound position control port
unsigned int iso::synth::AEPUnit::mSpeakerCount [protected] |
ambisonic order
math::Vector3<sample>* iso::synth::AEPUnit::mSpeakerPositions [protected] |
number of speakers
sample* iso::synth::AEPUnit::mInvSpeakerDistances [protected] |
speaker positions
sample* iso::synth::AEPUnit::mGains [protected] |
inverse speaker distances
sample* iso::synth::AEPUnit::mPrevGains [protected] |
audio gains for all speakers
sample iso::synth::AEPUnit::mInvFrameCount [protected] |
previous audio gains for all speakers (for linear interpolation)