Merge from vendor branch LIBSTDC++:
[dragonfly.git] / sys / i386 / gnu / isa / sound / awe_config.h
1 /*
2  * sound/awe_config.h
3  *
4  * Configuration of AWE32 sound driver
5  *   version 0.4.2; Sep. 15, 1997
6  *
7  * Copyright (C) 1996 Takashi Iwai
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */
23
24 #ifndef AWE_CONFIG_H_DEF
25 #define AWE_CONFIG_H_DEF
26
27 /*----------------------------------------------------------------
28  * system configuration
29  *----------------------------------------------------------------*/
30
31 /* if you're using obsolete VoxWare 3.0.x on Linux 1.2.x (or pre-Voxware 3.5
32  * versions of FreeBSD), define the following line.
33  */
34 #undef AWE_OBSOLETE_VOXWARE
35
36 /* if you're using OSS-Lite on Linux 2.1.6 or later, define the
37  * following line.
38  */
39 #undef AWE_NEW_KERNEL_INTERFACE
40
41 /* if you have lowlevel.h in the lowlevel directory (OSS-Lite), define
42  * the following line.
43  */
44 #undef HAS_LOWLEVEL_H
45
46 /* if your system doesn't support patch manager (OSS 3.7 or newer),
47  * define the following line.
48  */
49 #undef AWE_NO_PATCHMGR
50  
51 /* if your system has an additional parameter (OSS 3.8b5 or newer),
52  * define this.
53  */
54 #undef AWE_OSS38
55
56 /*----------------------------------------------------------------
57  * AWE32 card configuration:
58  * uncomment the following lines only when auto detection doesn't
59  * work properly on your machine.
60  *----------------------------------------------------------------*/
61
62 /*#define AWE_DEFAULT_BASE_ADDR 0x620*/ /* base port address */
63 /*#define AWE_DEFAULT_MEM_SIZE  512*/   /* kbytes */
64
65
66 /*----------------------------------------------------------------
67  * maximum size of soundfont list table:
68  * you usually don't need to touch this value.
69  *----------------------------------------------------------------*/
70
71 #define AWE_MAX_SF_LISTS 16
72
73
74 /*----------------------------------------------------------------
75  * chunk size of sample and voice tables:
76  * you usually don't need to touch these values.
77  *----------------------------------------------------------------*/
78
79 #define AWE_MAX_SAMPLES 400
80 #define AWE_MAX_INFOS 800
81
82
83 /*----------------------------------------------------------------
84  * chorus & reverb effects send for FM chip: from 0 to 0xff
85  * larger numbers often cause weird sounds.
86  *----------------------------------------------------------------*/
87
88 #define DEF_FM_CHORUS_DEPTH     0x10
89 #define DEF_FM_REVERB_DEPTH     0x10
90
91
92 /*----------------------------------------------------------------*
93  * other compile conditions
94  *----------------------------------------------------------------*/
95
96 /* initialize FM passthrough even without extended RAM */
97 #undef AWE_ALWAYS_INIT_FM
98
99 /* debug on */
100 #define AWE_DEBUG_ON
101
102 /* GUS compatible mode */
103 #define AWE_HAS_GUS_COMPATIBILITY
104
105 /* accept all notes/sounds off controls */
106 #define AWE_ACCEPT_ALL_SOUNDS_CONTROL
107
108 /* add mixer control of emu8000 equalizer */
109 #define CONFIG_AWE32_MIXER
110
111 /* look up voices according to MIDI channel priority */
112 #define AWE_LOOKUP_MIDI_PRIORITY
113
114 /*----------------------------------------------------------------*/
115
116 /* reading configuration of sound driver */
117
118 #ifdef AWE_OBSOLETE_VOXWARE
119
120 #ifdef __FreeBSD__
121 #  include <i386/isa/sound/sound_config.h>
122 #else
123 #  include "sound_config.h"
124 #endif
125
126 #if defined(CONFIGURE_SOUNDCARD) && !defined(EXCLUDE_AWE32)
127 #define CONFIG_AWE32_SYNTH
128 #endif
129
130 #else /* AWE_OBSOLETE_VOXWARE */
131
132 #ifdef HAS_LOWLEVEL_H
133 #include "lowlevel.h"
134 #endif
135
136 #ifdef __FreeBSD__
137 #  include <i386/isa/sound/sound_config.h>
138 #  if defined(CONFIGURE_SOUNDCARD) && defined(CONFIG_AWE32)
139 #    define CONFIG_AWE32_SYNTH
140 #  endif
141 #else
142 #  include "../sound_config.h"
143 #endif
144
145
146 #endif /* AWE_OBSOLETE_VOXWARE */
147
148
149 #endif  /* AWE_CONFIG_H_DEF */