Debian Codegraph @

android/app/jni/extern/SAASound/src/defns.h

raw
1 // Part of SAASound copyright 2020 Dave Hooper <[email protected]>
2 //
3 // defns.h: compile-time configuration parameters
4 //
5 //////////////////////////////////////////////////////////////////////
6
7 #ifndef DEFNS_H_INCLUDED
8 #define DEFNS_H_INCLUDED
9
10 #ifdef HAVE_CONFIG_H
11 // using CMAKE
12 #include "saasound_cmake_config.h"
13 #else
14
15 // initial default SAA1099 crystal clock rate in HZ (can be changed subsequently by calling SetClockRate)
16 #define EXTERNAL_CLK_HZ 8000000
17
18 // define SAAFREQ_FIXED_CLOCKRATE if the above external clock rate is the only supported clock rate
19 // i.e. only support a single compile-time clock rate (=> this also prevents using the SetClockRate method)
20 #undef SAAFREQ_FIXED_CLOCKRATE
21 // #define SAAFREQ_FIXED_CLOCKRATE
22
23 // initial default sample rate (audio samplerate)
24 #define SAMPLE_RATE_HZ 44100
25
26 // initial default oversample (audio quality) recommend 0<=oversample<=6
27 #define DEFAULT_OVERSAMPLE 6
28
29 // Whether to dump out a log of all register and value changes and raw output pcm
30 //#define DEBUGSAA
31 #undef DEBUGSAA
32
33 // the (default) names of the register output and pcm output log files.
34 // If you're using a config file, you can change these (or, if you enable
35 // debugging via the config file settings, but leave the filenames unspecified,
36 // it will use these defaults)
37 #define DEBUG_SAA_REGISTER_LOG "debugsaa.txt"
38 #define DEBUG_SAA_PCM_LOG "debugsaa.pcm"
39 // Whether to include support for these debug logs via config file (only making
40 // sense if USE_CONFIG_FILE is also defined)
41
42 // Whether to support a startup configuration file that is parsed at load time
43 // #undef USE_CONFIG_FILE
44 // NO! this is messy as heck!
45 //#define USE_CONFIG_FILE
46
47 // and if so, what is its location
48 #ifdef USE_CONFIG_FILE
49 #define CONFIG_FILE_PATH "SAASound.cfg"
50 #endif // USE_CONFIG_FILE
51
52 #define DEFAULT_UNBOOSTED_MULTIPLIER 11.35
53
54 #define DEFAULT_BOOST 1
55
56
57 #endif // HAVE_CONFIG_H
58
59 #endif // DEFNS_H_INCLUDED