#include <iso_synth_ate_unit.h>
Inherits iso::synth::OutputUnit.
Inherited by iso::synth::ATEAverageUnit, iso::synth::ATEConditionalUnit, iso::synth::ATEMaxAmpUnit, iso::synth::ATEMaxUnit, iso::synth::ATEMinAmpUnit, and iso::synth::ATEMinUnit.
Inheritance diagram for iso::synth::ATEUnit:
Public Member Functions | |
ATEUnit () | |
constructor | |
ATEUnit (const String &pName) | |
name constructor | |
ATEUnit (unsigned int pChannelCount) | |
parameter based contructor | |
ATEUnit (const String &pName, unsigned int pChannelCount) | |
parameter based contructor | |
ATEUnit (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
parameter based contructor | |
ATEUnit (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
name and parameter based contructor | |
ATEUnit (const Unit &pUnit) | |
copy constructor | |
ATEUnit (const String &pName, const Unit &pUnit) | |
name & copy constructor | |
virtual | ~ATEUnit () |
destructor | |
void | registerEvent (const event::Event &pEvent) |
register event | |
void | setInterval (Frame pInterval) |
set sampling interval in ms | |
void | setInterpolationTime (Frame pInterpolationTime) |
set interpolation time | |
virtual void | process (Buffer *pBuffer=NULL) 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 | |
void | init () |
initializes unit | |
virtual void | triggerEvents () |
trigger events | |
virtual void | processEvents () |
process alrealdy running events | |
Protected Attributes | |
unsigned int * | mInterval |
sampling intervals (1 per channel) | |
unsigned int * | mICount |
interval counters (per channel) | |
Frame | mInterpolationTime |
event interpolation time in ms (handled by the event target itself) | |
Frame | mEventValFrame |
prototype of a frame to be sent, that holds only NAN values. This frame doesn't have to be cloned, the event manager will clone it later. | |
data::TypedValue< Frame > | mEventValue |
QVector< event::Event * > | mEventRegistry |
Static Protected Attributes | |
static unsigned int | sUnitCount |
total number of units created so far |
audio stream at regular intervals and sends the sampled values as events
switch ports:
interval : sampling interval (max interval = 26 hours) interpolation: interpolation time in ms per channel (used when creating the Event)
Created by John Flury on 03/12/08. Copyright 2006 I.S.O. All rights reserved.
ATEUnit::ATEUnit | ( | ) |
constructor
ATEUnit::ATEUnit | ( | const String & | pName | ) |
name constructor
pName | unit name |
ATEUnit::ATEUnit | ( | unsigned int | pChannelCount | ) |
parameter based contructor
pChannelCount | number of channels |
ATEUnit::ATEUnit | ( | const String & | pName, | |
unsigned int | pChannelCount | |||
) |
parameter based contructor
pName | unit name | |
pChannelCount | number of channels |
ATEUnit::ATEUnit | ( | unsigned int | pFrameCount, | |
unsigned int | pChannelCount, | |||
unsigned int | pRate | |||
) | throw (SynthException) |
parameter based contructor
pFrameCount | number of frames | |
pChannelCount | number of channels | |
pRate | samping rate |
ATEUnit::ATEUnit | ( | const String & | pName, | |
unsigned int | pFrameCount, | |||
unsigned int | pChannelCount, | |||
unsigned int | pRate | |||
) | throw (SynthException) |
name and parameter based contructor
pName | unit name | |
pFrameCount | number of frames | |
pChannelCount | number of channels | |
pRate | samping rate |
ATEUnit::ATEUnit | ( | const Unit & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
ATEUnit::~ATEUnit | ( | ) | [virtual] |
destructor
void ATEUnit::registerEvent | ( | const event::Event & | pEvent | ) |
register event
pEvent | event |
void ATEUnit::setInterval | ( | Frame | pInterval | ) |
set sampling interval in ms
pInterval | ( sampling internal in ms ) |
void ATEUnit::setInterpolationTime | ( | Frame | pInterpolationTime | ) |
set interpolation time
pInterpolationTime | ( interpolation time in ms ) |
void ATEUnit::process | ( | Buffer * | pBuffer = NULL |
) | throw (SynthException) [virtual] |
processes buffer
pBuffer | buffer to process |
Reimplemented from iso::synth::OutputUnit.
Reimplemented in iso::synth::ATEAverageUnit, iso::synth::ATEConditionalUnit, iso::synth::ATEMaxAmpUnit, iso::synth::ATEMaxUnit, iso::synth::ATEMinAmpUnit, and iso::synth::ATEMinUnit.
base::String ATEUnit::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::OutputUnit.
Reimplemented in iso::synth::ATEAverageUnit, iso::synth::ATEConditionalUnit, iso::synth::ATEMaxAmpUnit, iso::synth::ATEMaxUnit, iso::synth::ATEMinAmpUnit, and iso::synth::ATEMinUnit.
void ATEUnit::init | ( | ) | [protected] |
initializes unit
Reimplemented in iso::synth::ATEAverageUnit, iso::synth::ATEConditionalUnit, iso::synth::ATEMaxAmpUnit, iso::synth::ATEMaxUnit, iso::synth::ATEMinAmpUnit, and iso::synth::ATEMinUnit.
void ATEUnit::triggerEvents | ( | ) | [protected, virtual] |
trigger events
void ATEUnit::processEvents | ( | ) | [protected, virtual] |
process alrealdy running events
const base::String ATEUnit::sClassName [static] |
default name
Reimplemented from iso::synth::OutputUnit.
Reimplemented in iso::synth::ATEAverageUnit, iso::synth::ATEConditionalUnit, iso::synth::ATEMaxAmpUnit, iso::synth::ATEMaxUnit, iso::synth::ATEMinAmpUnit, and iso::synth::ATEMinUnit.
unsigned int ATEUnit::sUnitCount [static, protected] |
total number of units created so far
Reimplemented from iso::synth::OutputUnit.
Reimplemented in iso::synth::ATEAverageUnit, iso::synth::ATEConditionalUnit, iso::synth::ATEMaxAmpUnit, iso::synth::ATEMaxUnit, iso::synth::ATEMinAmpUnit, and iso::synth::ATEMinUnit.
unsigned int* iso::synth::ATEUnit::mInterval [protected] |
sampling intervals (1 per channel)
unsigned int* iso::synth::ATEUnit::mICount [protected] |
interval counters (per channel)
Frame iso::synth::ATEUnit::mInterpolationTime [protected] |
event interpolation time in ms (handled by the event target itself)
Frame iso::synth::ATEUnit::mEventValFrame [protected] |
prototype of a frame to be sent, that holds only NAN values. This frame doesn't have to be cloned, the event manager will clone it later.
data::TypedValue<Frame> iso::synth::ATEUnit::mEventValue [protected] |
QVector< event::Event* > iso::synth::ATEUnit::mEventRegistry [protected] |