17 #ifndef __TT_MAX_AUDIOGRAPH_H__
18 #define __TT_MAX_AUDIOGRAPH_H__
22 #include "ext_strings.h"
23 #include "commonsyms.h"
25 #include "jpatcher_api.h"
33 #define SELF t_object*(self)
44 typedef struct _MaxAudioGraphWrappedClass {
46 t_symbol* maxClassName;
49 TTPtr validityCheckArgument;
85 return options->
append(optionName, optionValue);
96 return options->
lookup(optionName, optionValue);
198 TTErr MaxAudioGraphDrop(t_object*
self,
long inletNumber, t_object* sourceMaxObject,
long sourceOutletNumber);
237 #endif // __TT_MAX_AUDIOGRAPH_H__
TTErr MaxAudioGraphObject(t_object *self, TTAudioGraphObjectBasePtr *returnedAudioGraphObject)
Returns a pointer to the Jamoma Audio Graph object that is wrapped by this Max object.
TTErr MaxAudioGraphDrop(t_object *self, long inletNumber, t_object *sourceMaxObject, long sourceOutletNumber)
Method called when a connection from an upstream node is dropped.
std::uint16_t TTUInt16
16 bit unsigned integer
TTErr lookup(const TTSymbol &optionName, TTValue &optionValue)
Loopup the value of an option.
TTErr lookup(const TTSymbol key, TTValue &value)
Find the value for the given key.
virtual ~MaxAudioGraphWrappedClassOptions()
Destructor.
Provides all necessary definitions for AudioGraph API.
TTErr MaxAudioGraphSetup(t_object *self)
Set up fresh connections from this object to nodes that are connected downstream. ...
TTErr wrapAsMaxAudioGraph(TTSymbol ttClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c)
Wrap an AudioGraph class as a Max class.
MaxAudioGraphWrappedClassOptions()
Constructor.
Maintain a collection of TTValue objects indexed by TTSymbol pointers.
void * TTPtr
A generic pointer.
A class representing the options of a MaxAudioGraphWrappedClass.
MaxAudioGraphWrappedClassOptions * MaxAudioGraphWrappedClassOptionsPtr
A pointer to MaxAudioGraphWrappedClassOptions.
Type definition for an AudioGraph class wrapped as a Max external.
TTErr append(const TTSymbol &optionName, const TTValue &optionValue)
Append a new option to this class.
MaxAudioGraphWrappedClass * MaxAudioGraphWrappedClassPtr
A pointer to a MaxAudioGraphWrappedClass.
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
TTErr append(const TTSymbol key, const TTValue &value)
Insert an item into the hash table.
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 ...
TTErr(* TTValidityCheckFunction)(const TTPtr data)
A type that can be used to store a pointer to a validity checking function.
TTErr MaxAudioGraphReset(t_object *x, long vectorSize)
Clear the list of source objects from which this object will try to pull audio.
[doxygenAppendixC_copyExample]
TTErr MaxAudioGraphConnect(t_object *x, TTAudioGraphObjectBasePtr audioSourceObject, TTUInt16 sourceOutletNumber)
Method called when an upstream node is connected to this node.