BinaryOp.h File Reference

#include "CSL_Core.h"

Go to the source code of this file.


Classes

class  csl::BinaryOp
class  csl::AddOp
class  csl::MulOp

Namespaces

namespace  csl
 < we use the STL vector, map, and string classes

Defines

#define DECLARE_OPERAND_CONTROLS
 Declare the operand port (accessing the mInputs map) and current value.
#define LOAD_OPERAND_CONTROLS
#define UPDATE_OPERAND_CONTROLS
 Update the op-related value in the loop.


Define Documentation

#define DECLARE_OPERAND_CONTROLS

Value:

Port * opPort = mInputs[CSL_OPERAND];               \
    SampleBuffer inValue;                               \
    sample opValue
Declare the operand port (accessing the mInputs map) and current value.

Referenced by csl::MulOp::nextBuffer(), and csl::AddOp::nextBuffer().

#define LOAD_OPERAND_CONTROLS

Value:

Controllable::pullInput(opPort, numFrames);         \
    Effect::pullInput(numFrames);                       \
    inValue = mInputPtr;                                \
    opValue = opPort->nextValue()
Load the op-related values at the start of the callback; if the operand is a dynamic UGen input, then pull its value, get the pointer to its buffer, and set the first value, otherwise store the constant value

Referenced by csl::MulOp::nextBuffer(), and csl::AddOp::nextBuffer().

#define UPDATE_OPERAND_CONTROLS

Value:

opValue = opPort->nextValue()   ;                   \
    inValue++
Update the op-related value in the loop.

Referenced by csl::MulOp::nextBuffer(), and csl::AddOp::nextBuffer().


Generated on Thu Sep 17 23:14:16 2009 for CSL by  doxygen 1.5.8