#include <iso_synth_binary_op_unit.h>
Inherits iso::synth::ProcessUnit.
Inherited by iso::synth::AddUnit, and iso::synth::MultiplyUnit.
Inheritance diagram for iso::synth::BinaryOpUnit:
Public Member Functions | |
BinaryOpUnit () | |
default constructor | |
BinaryOpUnit (const String &pName) | |
name constructor | |
BinaryOpUnit (unsigned int pChannelCount) | |
default constructor | |
BinaryOpUnit (const String &pName, unsigned int pChannelCount) | |
name constructor | |
BinaryOpUnit (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate, FanInType pFanInType=FANIN_ADD) throw (SynthException) | |
name and parameter based contructor | |
BinaryOpUnit (const String &pName, const Unit &pUnit) | |
name & copy constructor | |
BinaryOpUnit (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
virtual | ~BinaryOpUnit () |
destructor | |
virtual void | process (Buffer *pBuffer)=0 throw (SynthException) |
processes buffer | |
Static Public Attributes | |
static const String | sClassName |
default name | |
Protected Attributes | |
ControlPort * | mOperand |
operand control port | |
Buffer * | mOperandBuffer |
operand control port buffer |
class for units that perform binary operations
Created by Daniel Bisig on 6/24/06. Copyright 2006 Daniel Bisig All rights reserved.
BinaryOpUnit::BinaryOpUnit | ( | ) |
default constructor
BinaryOpUnit::BinaryOpUnit | ( | const String & | pName | ) |
name constructor
pName | unit name |
BinaryOpUnit::BinaryOpUnit | ( | unsigned int | pChannelCount | ) |
default constructor
pChannelCount | number of channels |
BinaryOpUnit::BinaryOpUnit | ( | const String & | pName, | |
unsigned int | pChannelCount | |||
) |
name constructor
pName | unit name | |
pChannelCount | number of channels |
BinaryOpUnit::BinaryOpUnit | ( | const String & | pName, | |
unsigned int | pFrameCount, | |||
unsigned int | pChannelCount, | |||
unsigned int | pRate, | |||
FanInType | pFanInType = FANIN_ADD | |||
) | throw (SynthException) |
name and parameter based contructor
pName | unit name | |
pFrameCount | number of frames | |
pChannelCount | number of channels | |
pRate | samping rate | |
pFanInType | strategy for combining audio buffers in case this unit is connected to several units |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
BinaryOpUnit::BinaryOpUnit | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
BinaryOpUnit::~BinaryOpUnit | ( | ) | [virtual] |
destructor
virtual void iso::synth::BinaryOpUnit::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [pure virtual] |
processes buffer
pBuffer | buffer to process |
Reimplemented from iso::synth::ProcessUnit.
Implemented in iso::synth::AddUnit, and iso::synth::MultiplyUnit.
const String BinaryOpUnit::sClassName [static] |
default name
Reimplemented from iso::synth::ProcessUnit.
Reimplemented in iso::synth::AddUnit, and iso::synth::MultiplyUnit.
ControlPort* iso::synth::BinaryOpUnit::mOperand [protected] |
operand control port
Buffer* iso::synth::BinaryOpUnit::mOperandBuffer [protected] |
operand control port buffer