Jamoma API  0.6.0.a19
TTCount.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspGeneratorLib
4  *
5  * @brief GeneratorLib: Count the number of processed samples, starting from zero.
6  *
7  * @details
8  *
9  * @authors Trond Lossius
10  *
11  * @copyright Copyright © 2012 by Trond Lossius @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 __TT_COUNT_H__
18 #define __TT_COUNT_H__
19 
20 #include "TTDSP.h"
21 
22 
23 /** TTCount counts the number of samples processed so far.
24  */
27 
28 protected:
29 
30  TTFloat64 count; ///< Sample count
31 
32 
33  /** Process method
34  @param inputs Signal input vectors to process
35  @param outputs Processed audio
36  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
37  */
39 
40 
41  /** Start counting from zero again.
42  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
43  */
44  TTErr reset();
45 
46 
47  /** Unit Tests
48  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
49  */
50  //virtual TTErr test(TTValue& returnedTestInfo);
51 
52 };
53 
54 
55 #endif // __TT_COUNT_H__
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
Process method.
Definition: TTCount.cpp:44
TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP...
TTErr reset()
Start counting from zero again.
Definition: TTCount.cpp:37
TTFloat64 count
Sample count.
Definition: TTCount.h:30
Jamoma DSP Library.
double TTFloat64
64 bit floating point number
Definition: TTBase.h:188
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
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
TTCount counts the number of samples processed so far.
Definition: TTCount.h:25