Jamoma API  0.6.0.a19
TTAudioGraph.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup audioGraphLibrary
4  *
5  * @brief Registers classes for the primary AudioGraph library
6  *
7  * @details Creates a wrapper for TTAudioObjectBases that can be used to build an audio processing graph.
8  *
9  * @authors Timothy Place, Trond Lossius
10  *
11  * @copyright Copyright © 2008, Timothy Place @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 // TODO: Why are these header files included here rather than in TTAudioGraph.h?
18 #include "TTAudioGraph.h"
19 #include "TTAudioGraphGenerator.h"
20 #include "TTAudioGraphObject.h"
21 #include "TTAudioGraphInlet.h" // required for windows build
22 #ifndef TT_PLATFORM_IOS
23 #include "TTAudioGraphInput.h"
24 #include "TTAudioGraphOutput.h"
25 #endif
26 static bool initialized = false;
27 
28 
29 /***********************************************************/
30 
31 void TTAudioGraphInit(void)
32 {
33  if (!initialized) {
34  initialized = true;
35  TTDSPInit();
36  TTGraphInit();
37 
38  TTAudioGraphGenerator::registerClass();
39  TTAudioGraphObjectBase::registerClass();
40 #ifndef TT_PLATFORM_IOS
41  TTAudioGraphInput::registerClass();
42  TTAudioGraphOutput::registerClass();
43 #endif
44  }
45 }
46 
Generates the AudioGraph structure.
Registers classes for the primary AudioGraph library.
Defines a single 'inlet' from an individual AudioGraph object.
Defines input interface at the top of an AudioGraph.
Wraps an object from Jamoma DSP to function within AudioGraph.
void TTDSP_EXPORT TTDSPInit(const char *pathToBinaries=NULL)
Initialise the Jamoma DSP library, as well as Jamoma Foundation foundation if needed.
Definition: TTDSP.cpp:30
Defines output interface at the bottom of an AudioGraph.