Jamoma API  0.6.0.a19
TTSpatSnap.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspSpatLib
4  *
5  * @brief TODO
6  *
7  * @details TODO @n
8  *
9  * @authors Trond Lossius, Nils Peters, Timothy Place
10  *
11  * @copyright Copyright © 2011 by Trond Lossius, Nils Peters, and 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 #include "TTSpatSnap.h"
17 
18 #define thisTTClass TTSpatSnap
19 #define thisTTClassName "spat.snap"
20 #define thisTTClassTags "audio, spatialization, processing"
21 
22 
23 TTObjectBasePtr TTSpatSnap::instantiate(TTSymbol name, TTValue arguments)
24 {
25  return (TTObjectBasePtr) new thisTTClass(arguments);
26 }
27 
28 
29 extern "C" void thisTTClass :: registerClass ()
30 {
31  TTClassRegister( thisTTClassName, thisTTClassTags, thisTTClass :: instantiate );
32 }
33 
34 
35 TTSpatSnap::TTSpatSnap(const TTValue& arguments) : TTSpatBase(arguments)
36 {
37  mRenderer = new TTSpatSnapRenderer;
38 }
39 
40 
41 TTSpatSnap::~TTSpatSnap()
42 {
43  delete mRenderer;
44 }
45 
Base class for all first-class Jamoma objects.
Definition: TTObjectBase.h:109
A basic proof-of-concept spatial renderer where the audio of a source will snap to the nearest sink...
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbol.h:26
TTSpatSnapRenderer contains attributes and methods that are specific to this particular spatialisatio...
This class is eventually intended to provide a generalised interface for spatial renderers.
Definition: TTSpatBase.h:31
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34