Jamoma API  0.6.0.a19
TTAudioGraphGenerator.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup audioGraphLibrary
4  *
5  * @brief Generates the AudioGraph structure
6  *
7  * @details
8  *
9  * @authors Timothy Place, Trond Lossius
10  *
11  * @copyright Copyright © 2010, 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 #ifndef __TTAUDIOGRAPH_GENERATOR_H__
18 #define __TTAUDIOGRAPH_GENERATOR_H__
19 
20 #include "TTAudioGraph.h"
21 
22 
23 /******************************************************************************************/
24 
25 /** TTAudioGraphSource is a very simple audio object that holds a signal from Jamoma DSP
26  that can be used by a TTAudioGraph graph. */
27 class TTAUDIOGRAPH_EXPORT TTAudioGraphGenerator : public TTAudioObjectBase
28 {
30 
31 protected:
32 
33  TTUInt16 mVectorSize;
34 
35 
36  /** Set the vector size for audio processing.
37  @param newVectorSize The new vector size.
38  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
39  */
40  TTErr setVectorSize(const TTValue& newVectorSize);
41 
42 
43  /** Update the maximum number of channels to process.
44  @param oldMaxNumChannels TODO: This doesn't seem to be used
45  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
46  */
47  TTErr updateMaxNumChannels(const TTValue& oldMaxNumChannels, TTValue&);
48 
49 
50 
51  /** Update the sample rate.
52  @param oldSampleRate TODO: This doesn't seem to be used.
53  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
54  */
55  TTErr updateSampleRate(const TTValue& oldSampleRate, TTValue&);
56 
57 public:
58  TTAudioSignalPtr mBuffer; ///< Storage for the audioSignal that we provide
59 
60 
61  /** A standard audio processing method as used by Jamoma DSP objects.
62  @param inputs Unused.
63  @param outputs
64  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
65  */
66  TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs);
67 
68 
69  /** AudioGraphGenerator Unit test.
70  @param returnedTestInfo The outcome from the performed unit test.
71  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
72  */
73  //virtual TTErr test(TTValue& returnedTestInfo);
74 
75 };
76 
77 
78 /** Pointer to a TTAudioGraphGenerator.
79  @ingroup typedefs
80  */
82 
83 
84 #endif // __TTAUDIOGRAPH_GENERATOR_H__
std::uint16_t TTUInt16
16 bit unsigned integer
Definition: TTBase.h:176
TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP...
Registers classes for the primary AudioGraph library.
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
TTAudioGraphGenerator * TTAudioGraphGeneratorPtr
Pointer to a TTAudioGraphGenerator.
The TTAudioSignal class represents N vectors of audio samples for M channels.
Definition: TTAudioSignal.h:57
A simple container for an array of TTAudioSignal pointers.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
TTAudioSignalPtr mBuffer
Storage for the audioSignal that we provide.
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34
TTAudioGraphSource is a very simple audio object that holds a signal from Jamoma DSP that can be used...