forked from wothke/sc68-2.2.1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_option68.h
77 lines (57 loc) · 1.36 KB
/
config_option68.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
/* Configured options for sc68. */
#ifndef _SC68_CONFIG_OPTION68_H_
#define _SC68_CONFIG_OPTION68_H_
#ifdef HAVE_CONFIG_H
/* Debug facilities */
#if 0
# define _DEBUG 1
#endif
/* Define to prevent fd stream compilation */
#if 0
# define ISTREAM_NO_FD 1
#endif
/* Define to prevent FILE stream compilation */
#if 0
# define ISTREAM_NO_FILE 1
#endif
#ifdef EMSCRIPTEN
// disable save function
#define _FILE68_NO_SAVE_FUNCTION_ 1
# define ISTREAM_NO_FD 1
# define ISTREAM_NO_FILE 1
#endif
/* Define to prevent memory stream compilation */
#if 0
# define ISTREAM_NO_MEM 1
#endif
#ifndef REPLAY_RATE_MIN
# define REPLAY_RATE_MIN 25
#endif
#ifndef SAMPLING_RATE_MIN
# define SAMPLING_RATE_MIN 6000
#endif
// EMSCRIPTEN.. increased arbitary limit from 50000 to 96000
#ifndef SAMPLING_RATE_MAX
# define SAMPLING_RATE_MAX 96000
#endif
#ifndef SAMPLING_RATE_DEF
# define SAMPLING_RATE_DEF 44100
#endif
#endif /* #ifndef HAVE_CONFIG_H */
/* Fallback */
#ifndef NO_FALLBACK_CONFIG
#ifndef REPLAY_RATE_MIN
# define REPLAY_RATE_MIN 25
#endif
#ifndef SAMPLING_RATE_MIN
# define SAMPLING_RATE_MIN 6000
#endif
// EMSCRIPTEN.. increased arbitary limit from 50000 to 96000
#ifndef SAMPLING_RATE_MAX
# define SAMPLING_RATE_MAX 96000
#endif
#ifndef SAMPLING_RATE_DEF
# define SAMPLING_RATE_DEF 44100
#endif
#endif /* #ifndef NO_FALLBACK_CONFIG */
#endif /* #ifndef _SC68_CONFIG_OPTION68_H_ */