-
Notifications
You must be signed in to change notification settings - Fork 39
/
Config.h
122 lines (94 loc) · 3.87 KB
/
Config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/****************************************************************************
**
** Copyright 2019 neuromore co
** Contact: https://neuromore.com/contact
**
** Commercial License Usage
** Licensees holding valid commercial neuromore licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and neuromore. For licensing terms
** and conditions see https://neuromore.com/licensing. For further
** information use the contact form at https://neuromore.com/contact.
**
** neuromore Public License Usage
** Alternatively, this file may be used under the terms of the neuromore
** Public License version 1 as published by neuromore co with exceptions as
** appearing in the file neuromore-class-exception.md included in the
** packaging of this file. Please review the following information to
** ensure the neuromore Public License requirements will be met:
** https://neuromore.com/npl
**
****************************************************************************/
#ifndef __NEUROMORE_CONFIG_H
#define __NEUROMORE_CONFIG_H
#include <QString>
#include <Core/StandardHeaders.h>
#include <Core/String.h>
// developer mode
// feel free to enable or disable defines
#ifndef PRODUCTION_BUILD
// misc dev stuff
//#define FORCE_LOCALHOST // uncomment this to limit the server announce to the local machine
//#define SCREENSHOT_MODE // used to make screenshots of the graph (white background, no error state, no connection values etc.)
//#define FULLSCREEN_MODE // remove window decoration so the window can occupy the whole screen (for windows screenshots)
//#define FORCE_DEBUGLOGGING // enable debug log even if settings are disabled
// backend
#define BACKEND_LOGGING
// disable memory manager in debug
//#define CORE_DISABLE_MEMORYINFO
// Qt Data Visualization
//#ifdef NEUROMORE_PLATFORM_WINDOWS
// #define USE_QTDATAVISUALIZATION
//#endif
// OpenCV support
#define OPENCV_SUPPORT
// loreta debug mode
#define LORETA_DEBUG
#endif
// IMPORTANT NOTE:
// DO NOT EDIT THIS BLOCK WHILE DEVELOPING !!!
// HAT OF SHAME IS WAITING FOR YOU !!! ;)
#ifdef PRODUCTION_BUILD
// back-end
#define BACKEND_LOGGING
// Qt Data Visualization
//#ifdef NEUROMORE_PLATFORM_WINDOWS
// #define USE_QTDATAVISUALIZATION
//#endif
// OpenCV support
#define OPENCV_SUPPORT
#endif
// memory categories
enum
{
MEMCATEGORY_BASEAPP = 5991,
MEMCATEGORY_PLUGINS = 5992,
MEMCATEGORY_WIDGETS = 5993,
MEMCATEGORY_WINDOWS = 5994,
MEMCATEGORY_GRAPH_INTERFACE = 5995,
MEMCATEGORY_OPENCV_VIDEOPLAYER = 5996,
// rendering
MEMCATEGORY_RENDERING = 5801,
MEMCATEGORY_RENDERING_MESH = 5804,
MEMCATEGORY_RENDERING_OPENGLMANAGER = 5805,
MEMCATEGORY_RENDERING_OPENGLWIDGET = 5806,
MEMCATEGORY_RENDERING_TEXTURES = 5807
};
// Studio Networking Config default values
// default server TCP and UDP ports
#define STUDIO_NETWORKCLIENT_UDP_PORT 45554 // port of client where the data is send to
#define STUDIO_NETWORKSERVER_UDP_PORT 45555 // local udp port for outgoing studio->client udp data transfer
#define STUDIO_NETWORKSERVER_TCP_PORT 45456 // local tcp port where we listen to incoming connections from the clients
// default osc listener port
#define STUDIO_OSCLISTENER_UDP_PORT 4545 // port for OSC input nodes
#define STUDIO_OSCREMOTE_UDP_PORT 4546 // port for OSC output nodes
// default websocket port
#define STUDIO_WEBSOCKET_TCP_PORT 4547 // default tcp port for websocket
// client timeout duration in seconds
#define STUDIO_NETWORKSERVER_CLIENT_TIMEOUT 5
// server announce frequency in Hertz
#define STUDIO_NETWORKSERVER_ANNOUNCE_INTERVAL 2
// realtime update frequency in Hertz (rate of UDP packages)
#define STUDIO_NETWORKSERVER_REALTIME_UPDATE_FREQUENCY 60
#endif