Jamoma API  0.6.0.a19
TTSpatSnapRenderer.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspSpatLib
4  *
5  * @brief A basic proof-of-concept spatial renderer where the audio of a source will snap to the nearest sink.
6  *
7  * @details
8  *
9  * @todo: Extend with a solution for interpolating to new matrix coefficients
10  *
11  * @authors Trond Lossius, Nils Peters, Timothy Place
12  *
13  * @copyright Copyright © 2011 by Trond Lossius, Nils Peters, and Timothy Place @n
14  * This code is licensed under the terms of the "New BSD License" @n
15  * http://creativecommons.org/licenses/BSD/
16  */
17 
18 
19 #ifndef __SPATSNAPRENDERER_H__
20 #define __SPATSNAPRENDERER_H__
21 
22 #include "TTDSP.h"
23 #include "TTSampleMatrix.h"
24 #include "TTSpatEntity.h"
25 #include "TTSpatBaseRenderer.h"
26 
27 
28 /** TTSpatSnapRenderer contains attributes and methods that are specific to this particular spatialisation renderer.
29  */
31 
32 public:
33 
34  /** Constructor
35  */
37 
38 
39  /** Destructor
40  */
42 
43 
44  /** This method is called whenever matrix coefficients need to be updated.
45  @details This method also takes care of matrix resizing if the number of sources or sinks change.
46  @param sources A vector of sources
47  @param sinks A vector of sinks
48  */
50 
51 };
52 
53 
54 #endif // __SPATSNAPRENDERER_H__
A basic proof-of-concept spatial renderer where the audio of a source will snap to the nearest sink...
TTSpatEntity describes the geometry of a point, and TTSpatSource and TTSpatSink specialise this furth...
TTSampleMatrix holds some audio in a chunk of memory.
Jamoma DSP Library.
~TTSpatSnapRenderer()
Destructor.
std::vector< TTSpatSource > TTSpatSourceVector
Pointer to a vector of TTSpatSource points.
Definition: TTSpatEntity.h:108
std::vector< TTSpatSink > TTSpatSinkVector
Pointer to a vector of TTSpatSink points.
Definition: TTSpatEntity.h:114
void recalculateMatrixCoefficients(TTSpatSourceVector &sources, TTSpatSinkVector &sinks)
This method is called whenever matrix coefficients need to be updated.
TTSpatSnapRenderer contains attributes and methods that are specific to this particular spatialisatio...
TTSpatSnapRenderer()
Constructor.
TTSpatBaseRenderer defines the basic interface from which all renderers inherit.