SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WonderHeader.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 Martin Hansen
3  *
4  * This file is part of SPAOP (Spatial Audio Object Positioner).
5  *
6  * SPAOP is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * SPAOP is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with SPAOP. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 
21 #ifndef WONDERHEADER_H_INCLUDED
22 #define WONDERHEADER_H_INCLUDED
23 
24 #ifndef MAX_WONDER_SOURCES
25 #define MAX_WONDER_SOURCES 64
26 #endif
27 
28 //==============================================================================
29 // vvvvv source-parameter-related defines:
30 
31 
32 #ifndef COORD_MAX
33 #define COORD_MAX 100.0
36 #endif
37 
38 #ifndef COORD_MIN
39 #define COORD_MIN -COORD_MAX
42 #endif
43 
44 #ifndef COORD_PRECISION
45 #define COORD_PRECISION 0.01
49 #endif
50 
51 #ifndef ANGLE_PRECISION
52 #define ANGLE_PRECISION 0.1
56 #endif
57 
58 
59 //==============================================================================
60 // vvvvv communication-related defines:
61 
62 
63 // cWONDER_
64 #ifndef CWONDER_DEFAULT_IP_STR
65 #define CWONDER_DEFAULT_IP_STR "192.168.3.1"
66 #endif
67 
68 #ifndef CWONDER_DEFAULT_PORT_STR
69 #define CWONDER_DEFAULT_PORT_STR "58100"
70 #endif
71 
72 // Multicast group:
73 #ifndef VISUAL_MC_GROUP_STR
74 #define VISUAL_MC_GROUP_STR "239.0.111.111"
76 #endif
77 
78 #ifndef VISUAL_MC_PORT_STR
79 #define VISUAL_MC_PORT_STR "11111"
80 #endif
81 
82 #ifndef VISUAL_MC_IFACE_IP_STR
83 #define VISUAL_MC_IFACE_IP_STR "127.0.0.1"
86 #endif
87 
88 #ifndef VISUAL_MC_TTL
89 #define VISUAL_MC_TTL 0
91 #endif
92 
93 // the stream-multicaster for the visual stream:
94 #ifndef MULTICASTER_PORT_STR
95 #define MULTICASTER_PORT_STR "58800"
98 #endif
99 
100 #ifndef MULTICASTER_STREAM_IN_PORT_STR
101 #define MULTICASTER_STREAM_IN_PORT_STR "58801"
103 #endif
104 
105 
106 #ifndef PING_TIMEOUT_INTERVAL
107 #define PING_TIMEOUT_INTERVAL 3000
110 #endif
111 
112 
113 namespace wonder {
114 
117 {
118  inactive = 0,
119  active,
120  error
122 };
124 }
125 
126 
127 #endif // WONDERHEADER_H_INCLUDED
"Visual Stream" data is being received.
Definition: WonderHeader.h:137
ConnectionStates
An enum describing the differents states of an incoming connection.
Definition: WonderHeader.h:134
Incoming data is expected but not received (= ping timeout).
Definition: WonderHeader.h:138
No incoming data is expected.
Definition: WonderHeader.h:136