Jamoma API  0.6.0.a19
Properties.h
1 // File with global constants used for entire simulation
2 
3 #ifndef _PROPERTIES_H_
4 #define _PROPERTIES_H_
5 
6 #include "ext.h"
7 #include "TTBase.h"
8 
9 #define IEM_NAN(f) (f != f)
10 
11 namespace Properties {
12 enum dimIndex {WIDTH, DEPTH, HEIGHT, ALL};
13 enum fadeMode {COS, COS_SQUARED, LINEAR, TANH, SQRT, LOG, SIGMOID};
14 enum wallName {AIR = 0, LEFT, RIGHT, FRONT, REAR, FLOOR, CEILING, LEFT_FRONT, RIGHT_FRONT, LEFT_REAR,
15  RIGHT_REAR, LEFT_FLOOR, RIGHT_FLOOR, LEFT_CEILING, RIGHT_CEILING, FRONT_FLOOR, REAR_FLOOR, FRONT_CEILING, REAR_CEILING};
16 enum reflectionOrder {DIRECT = 0, FIRST, SECOND};
17 static const int REFLECTIONORDER = 3;
18 static const int NUMWALLS = 6;
19 // static const int FILTER_MAP[REFLECTIONORDER * NUMWALLS] = {0, 0, 1, 2, 3, 4, 5, 6, 7, 6, 7, 6, 7, 6, 7, 8, 9, 8, 9};
20 enum AudioProcess {NONE, VIMIC_LITE, AMP_PAN, X_FADE_LITE, X_FADE_XL, VIMIC_XL, STATIC};
21 static const int MAXNUMCHANNELS = 144;
22 static const double SAMPLERATE = 44100.0; // should that be here? we have x->s_sr !
23 static const double MAX_ROOM_DIM = 40.0;
24 static const int NUMSOURCES = 1;
25 static const int DELAYSIZE = 12288;// 3 * 4096 blocksize was 12160; //190 * BLOCKSIZE(64); // 12160 samples
26 static const int DELAYBYTES = 2 * DELAYSIZE;
27 static const double RAD2DEG = 180.0 / kTTPi;
28 static const double ONE_OVER_360 = 1.0 / 360.0;
29 static const int REFLECTIONS_PER_REFLECTION_ORDER[] = {1, 7, 19, 5};
30 static const int FADE_TABLE_SIZE = 3201;
31 }
32 
33 #endif
Jamoma's lowest-level base class and related infrastructure.
TTFOUNDATION_EXPORT const TTFloat64 kTTPi
[doxygenAppendixC_constExample]
Definition: TTBase.cpp:23