CSL_Core1.h File Reference

#include "CSL_Types.h"
#include "CSL_Exceptions.h"
#include "CGestalt.h"
#include <sys/time.h>

Go to the source code of this file.

Namespaces

namespace  csl

Classes

class  csl::Buffer
class  csl::BufferCMap
class  csl::UnitGenerator
 forward declaration More...
class  csl::Port
class  csl::Controllable
class  csl::Phased
class  csl::Scalable
class  csl::Effect
class  csl::Writeable
class  csl::Seekable
class  csl::Cacheable
class  csl::FanOut
class  csl::Splitter
class  csl::Joiner
class  csl::IO

Defines

#define DECLARE_PHASED_CONTROLS
 Declare the frequency port (accessing the mInputs map) and current value.
#define LOAD_PHASED_CONTROLS
#define UPDATE_PHASED_CONTROLS   freqValue = freqPort->nextValue()
 Update the freq-related value in the loop.
#define CHECK_UPDATE_PHASED_CONTROLS
#define DECLARE_SCALABLE_CONTROLS
 Declare the pointer to scale/offset buffers (if used) and current scale/offset values.
#define LOAD_SCALABLE_CONTROLS
 Load the scale/offset-relate values at the start.
#define UPDATE_SCALABLE_CONTROLS
#define CHECK_UPDATE_SCALABLE_CONTROLS
#define DO_TIMING
#define GET_TIME(val)   if (gettimeofday(val, 0) != 0) logMsg(kLogError, "Output: Error reading current time");
#define SUB_TIMES(t1, t2)   (((t1->tv_sec - t2->tv_sec) * 1000000) + (t1->tv_usec - t2->tv_usec))
#define DEFAULT_LOGGINGPERIOD   4

Enumerations

enum  csl::BufferContentType {
  csl::kSamples, csl::kSpectra, csl::kLPCCoeff, csl::kIRData,
  csl::kWavelet, csl::kGeometry, csl::kUnknown
}
enum  csl::BufferCopyPolicy { csl::kCopy, csl::kExpand, csl::kIgnore }
enum  csl::SeekPosition { csl::kPositionStart, csl::kPositionCurrent, csl::kPositionEnd }


Define Documentation

#define DECLARE_PHASED_CONTROLS
 

Value:

Port * freqPort = mInputs[CSL_FREQUENCY];               \
    float freqValue
Declare the frequency port (accessing the mInputs map) and current value.

Macros for all the Phased UnitGenerators (note that these don't end with ";") These make some assumptions about variable names declared in the method; i.e., the number of frames to compute must be named "numFrames." Use this: unsigned numFrames = outputBuffer.mNumFrames;

#define LOAD_PHASED_CONTROLS
 

Value:

Controllable :: pullInput(freqPort, numFrames);         \
    freqValue = freqPort->nextValue()
Load the freq-related values at the start of the callback; if the frequency 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

#define UPDATE_PHASED_CONTROLS   freqValue = freqPort->nextValue()
 

Update the freq-related value in the loop.

#define CHECK_UPDATE_PHASED_CONTROLS
 

Value:

if (freqPort)                                           \
        freqValue = freqPort->nextValue()

#define DECLARE_SCALABLE_CONTROLS
 

Value:

Port * scalePort = mInputs[CSL_SCALE];                  \
    Port * offsetPort = mInputs[CSL_OFFSET];                \
    float scaleValue, offsetValue
Declare the pointer to scale/offset buffers (if used) and current scale/offset values.

Macros for all the Scalable UnitGenerators (note that these don't end with ";") Note that these make some assumptions about variable names declared in the method;

#define LOAD_SCALABLE_CONTROLS
 

Value:

Controllable :: pullInput(scalePort, numFrames);        \
    scaleValue = scalePort->nextValue();                    \
    Controllable :: pullInput(offsetPort, numFrames);       \
    offsetValue = offsetPort->nextValue()
Load the scale/offset-relate values at the start.

#define UPDATE_SCALABLE_CONTROLS
 

Value:

scaleValue = scalePort->nextValue();                    \
    offsetValue = offsetPort->nextValue()

#define CHECK_UPDATE_SCALABLE_CONTROLS
 

Value:

if (scalePort)                                          \
        scaleValue = scalePort->nextValue();                \
    if (offsetPort)                                     \
        offsetValue = offsetPort->nextValue()

#define DO_TIMING
 

#define GET_TIME val   )     if (gettimeofday(val, 0) != 0) logMsg(kLogError, "Output: Error reading current time");
 

#define SUB_TIMES t1,
t2   )     (((t1->tv_sec - t2->tv_sec) * 1000000) + (t1->tv_usec - t2->tv_usec))
 

#define DEFAULT_LOGGINGPERIOD   4
 


Generated on Fri Apr 6 20:18:14 2007 for CSL by  doxygen 1.4.5-20051010