-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathaoo_config.h
More file actions
112 lines (88 loc) · 2.42 KB
/
aoo_config.h
File metadata and controls
112 lines (88 loc) · 2.42 KB
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
/* Copyright (c) 2021 Christof Ressi
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
/** \file
* \brief compile time configuration
*/
#pragma once
/*---------- global compile time settings ----------*/
/** \brief internal networking support (AooClient and AooServer) */
#ifndef AOO_NET
# define AOO_NET 1
#endif
/** \brief audio sample size in bits */
#ifndef AOO_SAMPLE_SIZE
#define AOO_SAMPLE_SIZE 32
#endif
/** \brief max. log level */
#ifndef AOO_LOG_LEVEL
#define AOO_LOG_LEVEL kAooLogLevelWarning
#endif
/** \brief custom allocator support */
#ifndef AOO_CUSTOM_ALLOCATOR
# define AOO_CUSTOM_ALLOCATOR 0
#endif
/** \brief IPv6 support */
#ifndef AOO_USE_IPV6
#define AOO_USE_IPV6 1
#endif
/** \brief default UDP packet size */
#ifndef AOO_PACKET_SIZE
# define AOO_PACKET_SIZE 512
#endif
/** \brief max. UDP packet size */
#ifndef AOO_MAX_PACKET_SIZE
# define AOO_MAX_PACKET_SIZE 4096
#endif
#if AOO_PACKET_SIZE > AOO_MAX_PACKET_SIZE
#error "AOO_PACKET_SIZE must exceed AOO_MAX_PACKET_SIZE"
#endif
/** \brief default size of the RT memory pool */
#ifndef AOO_MEM_POOL_SIZE
#define AOO_MEM_POOL_SIZE (1 << 20) /* 1 MB */
#endif
/** \brief clip audio output between -1 and 1 */
#ifndef AOO_CLIP_OUTPUT
# define AOO_CLIP_OUTPUT 0
#endif
/** \brief use built-in Opus codec */
#ifndef AOO_USE_OPUS
#define AOO_USE_OPUS 1
#endif
/*--------------- compile time debug options ----------------*/
/** \brief debug memory usage */
#ifndef AOO_DEBUG_MEMORY
# define AOO_DEBUG_MEMORY 0
#endif
/** \brief debug the state of the DLL filter */
#ifndef AOO_DEBUG_DLL
# define AOO_DEBUG_DLL 0
#endif
/** \brief debug incoming/outgoing data */
#ifndef AOO_DEBUG_DATA
# define AOO_DEBUG_DATA 0
#endif
/** \brief debug data resending */
#ifndef AOO_DEBUG_RESEND
# define AOO_DEBUG_RESEND 0
#endif
/** \brief debug the state of the dynamic resampler */
#ifndef AOO_DEBUG_RESAMPLER
# define AOO_DEBUG_RESAMPLER 0
#endif
/** \brief debug the state of the jitter buffer */
#ifndef AOO_DEBUG_JITTER_BUFFER
# define AOO_DEBUG_JITTER_BUFFER 0
#endif
/** \brief debug stream message scheduling */
#ifndef AOO_DEBUG_STREAM_MESSAGE
# define AOO_DEBUG_STREAM_MESSAGE 0
#endif
/** \brief debug relay messages */
#ifndef AOO_DEBUG_RELAY
#define AOO_DEBUG_RELAY 0
#endif
/** \brief debug client messages */
#ifndef AOO_DEBUG_CLIENT_MESSAGE
#define AOO_DEBUG_CLIENT_MESSAGE 0
#endif