23 #ifndef __TTAUDIOGRAPH_INLET_H__
24 #define __TTAUDIOGRAPH_INLET_H__
93 mClean = original.mClean;
105 mClean = source.mClean;
129 mSourceObjects.clear();
139 TTUInt16 size = mSourceObjects.size();
143 if (source->match(anObject, fromOutletNumber))
148 mSourceObjects.resize(size+1);
149 mSourceObjects[size].connect(anObject, fromOutletNumber);
150 mSourceObjects[size].setOwner(
this);
163 if (source->match(anObject, fromOutletNumber)) {
180 if (iter != mSourceObjects.end())
181 mSourceObjects.erase(iter);
192 mBufferedInput->
clear();
194 source->preprocess(initData);
213 if (mSourceObjects.size() == 1) {
217 err = mSourceObjects[0].process(mDirectInput, sampleStamp);
221 err |= (*source).process(sourceAudioOutput, sampleStamp);
224 (*mBufferedInput) = (*sourceAudioOutput);
229 (*mBufferedInput) += (*sourceAudioOutput);
256 source->prepareDescription();
269 source->getDescription(desc);
270 descs.push_back(desc);
277 #endif // __TTAUDIOGRAPH_INLET_H__
~TTAudioGraphInlet()
Object destructor.
bool TTBoolean
Boolean flag, same as Boolean on the Mac.
TTErr drop(TTAudioGraphObjectBasePtr anObject, TTUInt16 fromOutletNumber)
Drop a connection from an upstream node.
std::uint16_t TTUInt16
16 bit unsigned integer
TTAudioGraphInlet & operator=(const TTAudioGraphInlet &source)
The copy assignment constructor doesn't appear to be involved, at least with resizes, on the Mac...
TTErr TTObjectBaseRelease(TTObjectBasePtr *anObject)
DEPRECATED.
TTAudioSignalPtr getBuffer()
Get the most recently processed audio for this inlet as summerized from all connected upstream nodes...
TTErr process(TTUInt64 sampleStamp)
With the objects in the graph prepared by the preprocess() call, the audio can be pulled from nodes c...
std::uint64_t TTUInt64
64 bit unsigned integer
TTAudioSignalPtr mDirectInput
Pointer to the (non-buffered) input samples if there was no requirement to sum them.
TTAudioSignalPtr mBufferedInput
Summed samples from all sources.
void reset()
Reset the graph by dropping all connections to all sources in preparation of a rebuilding of all of t...
Represents one connection between two AudioGraph objects.
This object provides a description of a TTAudioGraphObject and its sources.
Registers classes for the primary AudioGraph library.
TTErr setAttributeValue(const TTSymbol name, TTValue &value)
Set an attribute value for an object.
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
void getDescriptions(TTAudioGraphDescriptionVector &descs)
The node is requested to declare itself as part of an action to describe all of the audio graph...
TTErr clear()
Zero out all of the sample values in the audio signal.
TTErr TTObjectBaseInstantiate(const TTSymbol className, TTObjectBasePtr *returnedObjectPtr, const TTValue arguments)
DEPRECATED.
This object represents a single 'inlet' to a TTAudioGraphObject.
The TTAudioSignal class represents N vectors of audio samples for M channels.
Wraps an object from Jamoma DSP to function within AudioGraph.
void prepareDescriptions()
Prepare for a request that wants to descibe all of the graph.
void preprocess(const TTAudioGraphPreprocessData &initData)
Just before audio processing, a preprocess() method is propagated up the audio graph chain from the t...
TTErr connect(TTAudioGraphObjectBasePtr anObject, TTUInt16 fromOutletNumber)
Establish a connection from an output of an upstream node to one of the inlets of this node so that p...
TTAudioGraphSourceVector::iterator TTAudioGraphSourceIter
An iterator on TTAudioGraphSourceVector.
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 ...
[doxygenAppendixC_bitmaskExample]
TTObjectBasePtr TTObjectBaseReference(TTObjectBasePtr anObject)
DEPRECATED.
TTAudioGraphSource represents one link from a TTAudioGraphInlet of a TTAudioGraphObjectBase to a TTAu...
TTAudioGraphSourceVector mSourceObjects
A vector of object pointers from which we pull our source samples using the ::getAudioOutput() method...
TTErr allocWithVectorSize(const TTUInt16 newVectorSize)
Allocate memory for all channels at the specified vectorsize, if the vectorsize is different from the...
void drop(TTAudioGraphSource &aSource)
Drop a connection (if any) to an upstream source.
std::vector< TTAudioGraphSource > TTAudioGraphSourceVector
A vector of #TTAudioGraphSources.