#include <iso_synth_mix_unit.h>
Inherits iso::synth::ProcessUnit, and iso::synth::PortConnectListener.
Inheritance diagram for iso::synth::MixUnit:
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 | |
SwitchPort * | mMixSwitch |
ports connected to incoming units | |
Frame | mMixValues |
switch port for changing mix values |
MixUnit::MixUnit | ( | unsigned int | pMixCount | ) |
create mixu unit
pMixCount | number of single channel units to be mixed down |
MixUnit::MixUnit | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
MixUnit::~MixUnit | ( | ) |
destructor
MixUnit::MixUnit | ( | ) | [protected] |
default contstructor
port connect notification
pInputPort | input port for connection | |
pOutputPort | output port for connection |
Implements iso::synth::PortConnectListener.
void MixUnit::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
audio processing
pBuffer | audio buffer |
SynthException | failed to process audio |
Reimplemented from iso::synth::ProcessUnit.
void MixUnit::setMix | ( | Frame | pMixValues | ) |
change mixing weights for all incoming units
pMixValues | ( mixing weights ) |
void MixUnit::init | ( | ) | [protected] |
initialize mix unit
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