25 #define thisTTClass TTAudioGraphOutput
26 #define thisTTClassName "dac"
27 #define thisTTClassTags "audio, graph, output"
60 mAudioEngine->sendMessage(
TT(
"addCallbackObserver"), *me, kTTValNONE);
64 TTAudioGraphOutput::~TTAudioGraphOutput()
94 TT_ASSERT(
"There must be an owner",
owner);
TTErr sendMessage(const TTSymbol name)
TODO: Document this function.
TTErr getDevice(TTValue &returnedValue)
Get the current audio output device.
TTErr stop()
Stop audio processing.
TTErr TTObjectBaseRelease(TTObjectBasePtr *anObject)
DEPRECATED.
TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP...
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
A standard audio processing method as used by Jamoma DSP objects.
An invalid number of audio channels for a given context was encountered.
void lockProcessing()
The thread protection for processing is important: we cannot have the graph nodes being deleted or re...
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
TTErr getAttributeValue(const TTSymbol name, TTValue &value)
Get an attribute value for an object.
Base class for all first-class Jamoma objects.
Defines a single 'inlet' from an individual AudioGraph object.
TTErr setAttributeValue(const TTSymbol name, TTValue &value)
Set an attribute value for an object.
TTErr getValue(T &aReturnedValue) const
Get the dictionary's primary value.
16-bit unsigned integer, range is 0 through 65,535.
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
A type that represents the key as a C-String and the value as a pointer to the matching TTSymbol obje...
void * TTPtr
A generic pointer.
TTErr setSampleRate(const TTValue &newValue)
Set sample rate.
TTErr getAvailableDeviceNames(const TTValue &, TTValue &returnedDeviceNames)
Get a list of available audio devices.
TTAudioGraphObjectBasePtr owner
The owning AudioGraph instance.
TTUInt16 vectorSize
The global/recommended/initial vectorSize (which can be overriden during process) ...
TTErr TTObjectBaseInstantiate(const TTSymbol className, TTObjectBasePtr *returnedObjectPtr, const TTValue arguments)
DEPRECATED.
TTErr setOwner(TTValue &newOwner, TTValue &)
TTErr setDevice(const TTValue &newValue)
Set what audio output device to use.
virtual TTErr preprocess(const TTAudioGraphPreprocessData &initData)
This method is called by an object about to process audio, prior to calling getAudioOutput().
The TTAudioSignal class represents N vectors of audio samples for M channels.
#define addMessageWithArguments(name)
A convenience macro to be used by subclasses for registering messages.
TTErr getCpuLoad(const TTValue &, TTValue &returnedValue)
Get current CPU load for the system, monitoring how demanding current processing is on the processor...
Wraps an object from Jamoma DSP to function within AudioGraph.
void unlockProcessing()
The thread protection for processing is important: we cannot have the graph nodes being deleted or re...
TTUInt64 mSampleStamp
The current time in samples.
Defines output interface at the bottom of an AudioGraph.
TTObjectBasePtr mAudioEngine
The audio engine that signals are output to.
TTAudioSignalPtr placeHolder
An unused audio signal that we pass.
A simple container for an array of TTAudioSignal pointers.
TTUInt64 mSampleStamp
The current time in samples, as determined from the pulling of this object.
virtual TTErr process(TTAudioSignalPtr &returnedSignal, TTUInt64 sampleStamp, TTUInt16 forOutletNumber=0)
This method is required to be implemented by all objects except for those existing solely as a destin...
TTErr setVectorSize(const TTValue &newValue)
Set vector size.
TTErr start()
Start audio processing.
TTErr getSampleRate(TTValue &returnedValue)
Get current sample rate.
TTErr audioEngineWillProcess()
This method is called by the audio engine every time a new vector of output is required.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
The TTAudioGraphObjectBase wraps a TTDSP object such that it is possible to build a dynamic graph of ...
#define addMessage(name)
A convenience macro to be used by subclasses for registering messages.
32-bit unsigned integer, range is 0 through 4,294,967,295.
TTErr getVectorSize(TTValue &returnedValue)
Get current vector size.
[doxygenAppendixC_copyExample]
TTChannelCount numAudioSignals
The number of audio signal pointers which are actually valid.
#define addAttributeWithGetterAndSetter(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom getter and sett...
#define addMessageProperty(messageName, propertyName, initialValue)
A convenience macro to be used for registering properties of messages.