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 {
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__
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.
MaxAudioGraphWrappedClassOptions()
Constructor.
t_symbol * maxClassName
The name to give the Max class.
Maintain a collection of TTValue objects indexed by TTSymbol pointers.
MaxAudioGraphWrappedClassOptions * options
Additional configuration options specified for the class.
TTErr MaxAudioGraphReset(t_object *x, long vectorSize)
Clear the list of source objects from which this object will try to pull audio.
void * TTPtr
A generic pointer.
A class representing the options of a MaxAudioGraphWrappedClass.
t_class * maxClass
The Max class pointer.
MaxAudioGraphWrappedClassOptions * MaxAudioGraphWrappedClassOptionsPtr
A pointer to MaxAudioGraphWrappedClassOptions.
Type definition for an AudioGraph class wrapped as a Max external.
TTErr(* TTValidityCheckFunction)(const TTPtr data)
A type that can be used to store a pointer to a validity checking function.
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 MaxAudioGraphObject(t_object *self, TTAudioGraphObjectBasePtr *returnedAudioGraphObject)
Returns a pointer to the Jamoma Audio Graph object that is wrapped by this Max object.
TTErr wrapAsMaxAudioGraph(TTSymbol ttClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c)
Wrap an AudioGraph class as a Max class.
TTPtr validityCheckArgument
An argument to pass to the validityCheck function when it is called.
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 MaxAudioGraphConnect(t_object *x, TTAudioGraphObjectBasePtr audioSourceObject, TTUInt16 sourceOutletNumber)
Method called when an upstream node is connected to this node.
TTErr MaxAudioGraphDrop(t_object *self, long inletNumber, t_object *sourceMaxObject, long sourceOutletNumber)
Method called when a connection from an upstream node is dropped.
TTValidityCheckFunction validityCheck
A function to call to validate the context for an object before it is instantiated.
[doxygenAppendixC_copyExample]
TTSymbol ttClassName
The name of the class as registered with the Jamoma framework.
TTErr MaxAudioGraphSetup(t_object *self)
Set up fresh connections from this object to nodes that are connected downstream. ...