#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 | kSamples 0 |
| #define | kSpectra 1 |
| #define | kLPCCoeff 2 |
| #define | kIRData 3 |
| #define | kWavelet 4 |
| #define | kGeometry 5 |
| #define | kUnknown 6 |
| #define | kCopy 0 |
| #define | kExpand 1 |
| #define | kIgnore 2 |
| #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-related values at the start. | |
| #define | UPDATE_SCALABLE_CONTROLS |
| #define | CHECK_UPDATE_SCALABLE_CONTROLS |
| #define | kPositionStart 0 |
| #define | kPositionCurrent 1 |
| #define | kPositionEnd 2 |
| #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)) |
Typedefs | |
| typedef int | csl::BufferContentType |
| typedef int | csl::BufferCopyPolicy |
| typedef int | csl::SeekPosition |
|
|
Sample buffer contents type (optional) One could argue that we should use subclasses for this, but they're not behaviorally different at present. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UnitGenerator buffer copy policy flags (for multi-channel expansion) |
|
|
|
|
|
|
|
|
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() |
|
|
Enumeration for seek flags |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5-20051010