Jamoma API  0.6.0.a19
TTAudioGraphOffset.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup audioGraphUtilityLib
4  *
5  * @brief offset≈: dynamically shift channels in multichannel signal
6  *
7  * @details
8  *
9  * @authors Nils Peters
10  *
11  * @copyright Copyright © 2011 by Nils Peters @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_OFFSET_H__
18 #define __TT_OFFSET_H__
19 
20 #include "TTDSP.h"
21 
22 
23 class TTAudioGraphOffset : public TTAudioObjectBase {
24  TTCLASS_SETUP(TTAudioGraphOffset)
25 
26 protected:
27 
28  TTInt16 mOffset; ///< how much we want to offset our channels, can be also negative
29 
30  TTErr setOffset(const TTValue& value);
31 
32  TTErr processAudioNegativeOffset(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs);
33  TTErr processAudioPositiveOffset(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs);
34  TTErr processAudioBypass (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs);
35 
36 
37 };
38 
39 
40 
41 #endif // __TT_OFFSET_H__
TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP...
Jamoma DSP Library.
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
std::int16_t TTInt16
16 bit signed integer
Definition: TTBase.h:175
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
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34