iso::synth::MixUnit Class Reference

#include <iso_synth_mix_unit.h>

Inherits iso::synth::ProcessUnit, and iso::synth::PortConnectListener.

Inheritance diagram for iso::synth::MixUnit:

Inheritance graph
[legend]
Collaboration diagram for iso::synth::MixUnit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MixUnit (unsigned int pMixCount)
 create mixu unit
 MixUnit (const data::Values &pValues) throw (SynthException)
 values based constructor
 ~MixUnit ()
 destructor
void portConnectNotify (AudioPort &pInputPort, AudioPort &pOutputPort)
 port connect notification
void process (Buffer *pBuffer) throw (SynthException)
 audio processing
void setMix (Frame pMixValues)
 change mixing weights for all incoming units

Protected Member Functions

 MixUnit ()
 default contstructor
void init ()
 initialize mix unit

Protected Attributes

QVector< ProcessUnit * > mInternalUnits
QVector< ControlPort * > mMixControls
 internal helper units in between mixer unit and incoming units
SwitchPortmMixSwitch
 ports connected to incoming units
Frame mMixValues
 switch port for changing mix values

Constructor & Destructor Documentation

MixUnit::MixUnit ( unsigned int  pMixCount  ) 

create mixu unit

Parameters:
pMixCount number of single channel units to be mixed down

MixUnit::MixUnit ( const data::Values &  pValues  )  throw (SynthException)

values based constructor

Parameters:
pValues unit values
Exceptions:
SynthException failed to create unit
pValues structure & data types: 0: const String& : unit name 1: unsigned int : number of single channel units to be mixed down

MixUnit::~MixUnit (  ) 

destructor

MixUnit::MixUnit (  )  [protected]

default contstructor


Member Function Documentation

void MixUnit::portConnectNotify ( AudioPort pInputPort,
AudioPort pOutputPort 
) [virtual]

port connect notification

Parameters:
pInputPort input port for connection
pOutputPort output port for connection

Implements iso::synth::PortConnectListener.

void MixUnit::process ( Buffer pBuffer  )  throw (SynthException) [virtual]

audio processing

Parameters:
pBuffer audio buffer
Exceptions:
SynthException failed to process audio

Reimplemented from iso::synth::ProcessUnit.

void MixUnit::setMix ( Frame  pMixValues  ) 

change mixing weights for all incoming units

Parameters:
pMixValues ( mixing weights )

void MixUnit::init (  )  [protected]

initialize mix unit


Member Data Documentation

QVector<ProcessUnit*> iso::synth::MixUnit::mInternalUnits [protected]

QVector<ControlPort*> iso::synth::MixUnit::mMixControls [protected]

internal helper units in between mixer unit and incoming units

SwitchPort* iso::synth::MixUnit::mMixSwitch [protected]

ports connected to incoming units

Frame iso::synth::MixUnit::mMixValues [protected]

switch port for changing mix values


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:18:46 2011 for synth by  doxygen 1.5.1