Speech bubbles can point down right.
[scummvm-innocent.git] / sound / softsynth / mt32 / mt32emu.h
blob6eedf04bc0b2f80ba2c47a4aad407deeabc53a9c
1 /* Copyright (c) 2003-2005 Various contributors
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to
5 * deal in the Software without restriction, including without limitation the
6 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 * sell copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 * IN THE SOFTWARE.
22 #ifndef MT32EMU_MT32EMU_H
23 #define MT32EMU_MT32EMU_H
25 // Debugging
26 // Show the instruments played
27 #define MT32EMU_MONITOR_INSTRUMENTS 1
28 // Shows number of partials MT-32 is playing, and on which parts
29 #define MT32EMU_MONITOR_PARTIALS 0
30 // Determines how the waveform cache file is handled (must be regenerated after sampling rate change)
31 #define MT32EMU_WAVECACHEMODE 0 // Load existing cache if possible, otherwise generate and save cache
32 //#define MT32EMU_WAVECACHEMODE 1 // Load existing cache if possible, otherwise generate but don't save cache
33 //#define MT32EMU_WAVECACHEMODE 2 // Ignore existing cache, generate and save cache
34 //#define MT32EMU_WAVECACHEMODE 3 // Ignore existing cache, generate but don't save cache
36 // Configuration
37 // The maximum number of partials playing simultaneously
38 #define MT32EMU_MAX_PARTIALS 32
39 // The maximum number of notes playing simultaneously per part.
40 // No point making it more than MT32EMU_MAX_PARTIALS, since each note needs at least one partial.
41 #define MT32EMU_MAX_POLY 32
42 // This calculates the exact frequencies of notes as they are played, instead of offsetting from pre-cached semitones. Potentially very slow.
43 #define MT32EMU_ACCURATENOTES 0
45 #if (defined (_MSC_VER) && defined(_M_IX86))
46 #define MT32EMU_HAVE_X86
47 #elif defined(__GNUC__)
48 #if __GNUC__ >= 3 && defined(__i386__)
49 #define MT32EMU_HAVE_X86
50 #endif
51 #endif
53 #ifdef MT32EMU_HAVE_X86
54 #define MT32EMU_USE_MMX 1
55 #else
56 #define MT32EMU_USE_MMX 0
57 #endif
59 #include "freeverb.h"
61 #include "structures.h"
62 #include "i386.h"
63 #include "mt32_file.h"
64 #include "tables.h"
65 #include "partial.h"
66 #include "partialManager.h"
67 #include "part.h"
68 #include "synth.h"
70 #endif