#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 } |
|
|
Value: Port * freqPort = mInputs[CSL_FREQUENCY]; \ float freqValue 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; |
|
|
Value: Controllable :: pullInput(freqPort, numFrames); \
freqValue = freqPort->nextValue()
|
|
|
Update the freq-related value in the loop.
|
|
|
Value: if (freqPort) \
freqValue = freqPort->nextValue()
|
|
|
Value: Port * scalePort = mInputs[CSL_SCALE]; \ Port * offsetPort = mInputs[CSL_OFFSET]; \ float scaleValue, offsetValue 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; |
|
|
Value: Controllable :: pullInput(scalePort, numFrames); \
scaleValue = scalePort->nextValue(); \
Controllable :: pullInput(offsetPort, numFrames); \
offsetValue = offsetPort->nextValue()
|
|
|
Value: scaleValue = scalePort->nextValue(); \
offsetValue = offsetPort->nextValue()
|
|
|
Value: if (scalePort) \ scaleValue = scalePort->nextValue(); \ if (offsetPort) \ offsetValue = offsetPort->nextValue() |
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5-20051010