r8brain-free-src
High-quality pro audio sample rate converter library
 
Loading...
Searching...
No Matches
r8bconf.h
Go to the documentation of this file.
1//$ nobt
2//$ nocpp
3
16
17#ifndef R8BCONF_INCLUDED
18#define R8BCONF_INCLUDED
19
20#if !defined( R8BASSERT )
27
28 #define R8BASSERT( e ) (void) 0
29#endif // !defined( R8BASSERT )
30
31#if !defined( R8BCONSOLE )
40
41 #define R8BCONSOLE( ... ) (void) 0
42#endif // !defined( R8BCONSOLE )
43
44#if !defined( R8B_BASECLASS )
55
56 #define R8B_BASECLASS :: r8b :: CStdClassAllocator
57#endif // !defined( R8B_BASECLASS )
58
59#if !defined( R8B_MEMALLOCCLASS )
64
65 #define R8B_MEMALLOCCLASS :: r8b :: CStdMemAllocator
66#endif // !defined( R8B_MEMALLOCCLASS )
67
68#if !defined( R8B_DSPBASECLASS )
78
79 #define R8B_DSPBASECLASS R8B_BASECLASS
80#endif // !defined( R8B_DSPBASECLASS )
81
82#if !defined( R8B_FILTER_CACHE_MAX )
89
90 #define R8B_FILTER_CACHE_MAX 96
91#endif // !defined( R8B_FILTER_CACHE_MAX )
92
93#if R8B_FILTER_CACHE_MAX < 2
94 #error R8B_FILTER_CACHE_MAX must be greater than 1.
95#endif // R8B_FILTER_CACHE_MAX < 2
96
97#if !defined( R8B_FRACBANK_CACHE_MAX )
106
107 #define R8B_FRACBANK_CACHE_MAX 12
108#endif // !defined( R8B_FRACBANK_CACHE_MAX )
109
110#if R8B_FRACBANK_CACHE_MAX < 2
111 #error R8B_FRACBANK_CACHE_MAX must be greater than 1.
112#endif // R8B_FRACBANK_CACHE_MAX < 2
113
114#if !defined( R8B_FLTTEST )
122
123 #define R8B_FLTTEST 0
124#endif // !defined( R8B_FLTTEST )
125
126#if !defined( R8B_FASTTIMING )
139
140 #define R8B_FASTTIMING 0
141#endif // !defined( R8B_FASTTIMING )
142
143#if !defined( R8B_EXTFFT )
153
154 #define R8B_EXTFFT 0
155#endif // !defined( R8B_EXTFFT )
156
157#if !defined( R8B_IPP )
166
167 #define R8B_IPP 0
168
169// #include <ippcore.h>
170// #include <ipps.h>
171#endif // !defined( R8B_IPP )
172
173#if !defined( R8B_PFFFT_DOUBLE )
178
179 #define R8B_PFFFT_DOUBLE 0
180#endif // !defined( R8B_PFFFT_DOUBLE )
181
182#if !defined( R8B_PFFFT )
190
191 #define R8B_PFFFT 0
192#else // !defined( R8B_PFFFT )
193 #if R8B_PFFFT && R8B_PFFFT_DOUBLE
194 // Handle the case when both `R8B_PFFFT` and `R8B_PFFFT_DOUBLE` were
195 // enabled together by mistake.
196
197 #error r8brain-free-src: R8B_PFFFT and R8B_PFFFT_DOUBLE collision.
198 #endif // R8B_PFFFT && R8B_PFFFT_DOUBLE
199#endif // !defined( R8B_PFFFT )
200
201#if R8B_PFFFT
202 #define R8B_FLOATFFT 1
203#endif // R8B_PFFFT
204
205#if !defined( R8B_FLOATFFT )
215
216 #define R8B_FLOATFFT 0
217#endif // !defined( R8B_FLOATFFT )
218
219#endif // R8BCONF_INCLUDED