Simplify setting a fontsound link
[openal-soft.git] / alsoftrc.sample
blob2e6dd92a74ad1eb01b79ea22541350a9b07a078d
1 # OpenAL config file.
3 # Option blocks may appear multiple times, and duplicated options will take the
4 # last value specified. Environment variables may be specified within option
5 # values, and are automatically substituted when the config file is loaded.
6 # Environment variable names may only contain alpha-numeric characters (a-z,
7 # A-Z, 0-9) and underscores (_), and are prefixed with $. For example,
8 # specifying "$HOME/file.ext" would typically result in something like
9 # "/home/user/file.ext". To specify an actual "$" character, use "$$".
11 # The system-wide settings can be put in /etc/openal/alsoft.conf and user-
12 # specific override settings in $HOME/.alsoftrc.
13 # For Windows, these settings should go into $AppData\alsoft.ini
15 # Option and block names are case-insenstive. The supplied values are only
16 # hints and may not be honored (though generally it'll try to get as close as
17 # possible). Note: options that are left unset may default to app- or system-
18 # specified values. These are the current available settings:
21 ## General stuff
23 [general]
25 ## disable-cpu-exts:
26 #  Disables use of specialized methods that use specific CPU intrinsics.
27 #  Certain methods may utilize CPU extensions for improved performance, and
28 #  this option is useful for preventing some or all of those methods from being
29 #  used. The available extensions are: sse, sse2, sse4.1, and neon. Specifying
30 #  'all' disables use of all such specialized methods.
31 #disable-cpu-exts =
33 ## channels:
34 #  Sets the output channel configuration. If left unspecified, one will try to
35 #  be detected from the system, and defaulting to stereo. The available values
36 #  are: mono, stereo, quad, surround51, surround61, surround71
37 #channels =
39 ## sample-type:
40 #  Sets the output sample type. Currently, all mixing is done with 32-bit float
41 #  and converted to the output sample type as needed. Available values are:
42 #  int8    - signed 8-bit int
43 #  uint8   - unsigned 8-bit int
44 #  int16   - signed 16-bit int
45 #  uint16  - unsigned 16-bit int
46 #  int32   - signed 32-bit int
47 #  uint32  - unsigned 32-bit int
48 #  float32 - 32-bit float
49 #sample-type = float32
51 ## hrtf:
52 #  Enables HRTF filters. These filters provide for better sound spatialization
53 #  while using headphones. The default filter will only work when output is
54 #  44100hz stereo. While HRTF is active, the cf_level option is disabled.
55 #  Default is disabled since stereo speaker output quality may suffer.
56 #hrtf = false
58 ## hrtf_tables
59 #  Specifies a comma-separated list of files containing HRTF data sets. The
60 #  format of the files are described in hrtf.txt. The filenames may contain
61 #  these markers, which will be replaced as needed:
62 #  %r - Device sampling rate
63 #  %% - Percent sign (%)
64 #  The listed files are relative to system-dependant data directories. On
65 #  Windows this is:
66 #  $AppData\openal\hrtf
67 #  And on other systems, it's (in order):
68 #  $XDG_DATA_HOME/openal/hrtf  (defaults to $HOME/.local/share/openal/hrtf)
69 #  $XDG_DATA_DIRS/openal/hrtf  (defaults to /usr/local/share/openal/hrtf and
70 #                               /usr/share/openal/hrtf)
71 #  An absolute path may also be specified, if the given file is elsewhere.
72 #hrtf_tables = default-%r.mhr
74 ## cf_level:
75 #  Sets the crossfeed level for stereo output. Valid values are:
76 #  0 - No crossfeed
77 #  1 - Low crossfeed
78 #  2 - Middle crossfeed
79 #  3 - High crossfeed (virtual speakers are closer to itself)
80 #  4 - Low easy crossfeed
81 #  5 - Middle easy crossfeed
82 #  6 - High easy crossfeed
83 #  Users of headphones may want to try various settings. Has no effect on non-
84 #  stereo modes.
85 #cf_level = 0
87 ## wide-stereo:
88 #  Specifies that stereo sources are given a width of about 120 degrees on each
89 #  channel, centering on -90 (left) and +90 (right), as opposed to being points
90 #  placed at -30 (left) and +30 (right). This can be useful for surround-sound
91 #  to give stereo sources a more encompassing sound. Note that the sound's
92 #  overall volume will be slightly reduced to account for the extra output.
93 #wide-stereo = false
95 ## frequency:
96 #  Sets the output frequency. If left unspecified it will try to detect a
97 #  default from the system, otherwise it will default to 44100.
98 #frequency =
100 ## resampler:
101 #  Selects the resampler used when mixing sources. Valid values are:
102 #  point - nearest sample, no interpolation
103 #  linear - extrapolates samples using a linear slope between samples
104 #  cubic - extrapolates samples using a Catmull-Rom spline
105 #  Specifying other values will result in using the default (linear).
106 #resampler = linear
108 ## rt-prio:
109 #  Sets real-time priority for the mixing thread. Not all drivers may use this
110 #  (eg. PortAudio) as they already control the priority of the mixing thread.
111 #  0 and negative values will disable it. Note that this may constitute a
112 #  security risk since a real-time priority thread can indefinitely block
113 #  normal-priority threads if it fails to wait. As such, the default is
114 #  disabled.
115 #rt-prio = 0
117 ## period_size:
118 #  Sets the update period size, in frames. This is the number of frames needed
119 #  for each mixing update. Acceptable values range between 64 and 8192.
120 #period_size = 1024
122 ## periods:
123 #  Sets the number of update periods. Higher values create a larger mix ahead,
124 #  which helps protect against skips when the CPU is under load, but increases
125 #  the delay between a sound getting mixed and being heard. Acceptable values
126 #  range between 2 and 16.
127 #periods = 4
129 ## sources:
130 #  Sets the maximum number of allocatable sources. Lower values may help for
131 #  systems with apps that try to play more sounds than the CPU can handle.
132 #sources = 256
134 ## drivers:
135 #  Sets the backend driver list order, comma-seperated. Unknown backends and
136 #  duplicated names are ignored. Unlisted backends won't be considered for use
137 #  unless the list is ended with a comma (e.g. 'oss,' will try OSS first before
138 #  other backends, while 'oss' will try OSS only). Backends prepended with -
139 #  won't be considered for use (e.g. '-oss,' will try all available backends
140 #  except OSS). An empty list means to try all backends.
141 #drivers =
143 ## excludefx:
144 #  Sets which effects to exclude, preventing apps from using them. This can
145 #  help for apps that try to use effects which are too CPU intensive for the
146 #  system to handle. Available effects are: eaxreverb,reverb,autowah,chorus,
147 #  compressor,distortion,echo,equalizer,flanger,modulator,dedicated
148 #excludefx =
150 ## slots:
151 #  Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
152 #  can use a non-negligible amount of CPU time if an effect is set on it even
153 #  if no sources are feeding it, so this may help when apps use more than the
154 #  system can handle.
155 #slots = 4
157 ## sends:
158 #  Sets the number of auxiliary sends per source. When not specified (default),
159 #  it allows the app to request how many it wants. The maximum value currently
160 #  possible is 4.
161 #sends =
163 ## layout:
164 #  Sets the virtual speaker layout. Values are specified in degrees, where 0 is
165 #  straight in front, negative goes left, and positive goes right. Unspecified
166 #  speakers will remain at their default positions (which are dependant on the
167 #  output format). Available speakers are back-left(bl), side-left(sl), front-
168 #  left(fl), front-center(fc), front-right(fr), side-right(sr), back-right(br),
169 #  and back-center(bc).
170 #layout =
172 ## layout_*:
173 #  Channel-specific layouts may be specified to override the layout option. The
174 #  same speakers as the layout option are available, and the default settings
175 #  are shown below.
176 #layout_stereo     = fl=-90, fr=90
177 #layout_quad       = fl=-45, fr=45, bl=-135, br=135
178 #layout_surround51 = fl=-30, fr=30, fc=0, bl=-110, br=110
179 #layout_surround61 = fl=-30, fr=30, fc=0, sl=-90, sr=90, bc=180
180 #layout_surround71 = fl=-30, fr=30, fc=0, sl=-90, sr=90, bl=-150, br=150
182 ## default-reverb:
183 #  A reverb preset that applies by default to all sources on send 0
184 #  (applications that set their own slots on send 0 will override this).
185 #  Available presets are: None, Generic, PaddedCell, Room, Bathroom,
186 #  Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
187 #  CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
188 #  Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
189 #default-reverb =
191 ## trap-alc-error:
192 #  Generates a SIGTRAP signal when an ALC device error is generated, on systems
193 #  that support it. This helps when debugging, while trying to find the cause
194 #  of a device error. On Windows, a breakpoint exception is generated.
195 #trap-alc-error = false
197 ## trap-al-error:
198 #  Generates a SIGTRAP signal when an AL context error is generated, on systems
199 #  that support it. This helps when debugging, while trying to find the cause
200 #  of a context error. On Windows, a breakpoint exception is generated.
201 #trap-al-error = false
204 ## MIDI stuff (EXPERIMENTAL)
206 [midi]
208 ## soundfont:
209 #  A default soundfont (sf2 format). Used when an app requests the system
210 #  default. The listed file is relative to system-dependant data directories.
211 #  On Windows this is:
212 #  $AppData\openal\soundfonts
213 #  And on other systems, it's (in order):
214 #  $XDG_DATA_HOME/openal/soundfonts
215 #  $XDG_DATA_DIRS/openal/soundfonts
216 #  An absolute path may also be specified, if the given file is elsewhere.
217 #soundfont =
219 ## volume:
220 #  Additional attenuation applied to MIDI output, expressed in decibels. This
221 #  is used to help keep the mix from clipping, and so must be 0 or less. The
222 #  value is logarithmic, so -6 will be about half amplitude, and -12 about
223 #  1/4th. The default is roughly -13.9794 (0.2, or 1/5th).
224 #volume =
227 ## Reverb effect stuff (includes EAX reverb)
229 [reverb]
231 ## boost:
232 #  A global amplification for reverb output, expressed in decibels. The value
233 #  is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
234 #  scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
235 #  value of 0 means no change.
236 #boost = 0
238 ## emulate-eax:
239 #  Allows the standard reverb effect to be used in place of EAX reverb. EAX
240 #  reverb processing is a bit more CPU intensive than standard, so this option
241 #  allows a simpler effect to be used at the loss of some quality.
242 #emulate-eax = false
245 ## PulseAudio backend stuff
247 [pulse]
249 ## spawn-server:
250 #  Attempts to autospawn a PulseAudio server whenever needed (initializing the
251 #  backend, enumerating devices, etc). Setting autospawn to false in Pulse's
252 #  client.conf will still prevent autospawning even if this is set to true.
253 #spawn-server = true
255 ## allow-moves:
256 #  Allows PulseAudio to move active streams to different devices. Note that the
257 #  device specifier (seen by applications) will not be updated when this
258 #  occurs, and neither will the AL device configuration (sample rate, format,
259 #  etc).
260 #allow-moves = false
263 ## ALSA backend stuff
265 [alsa]
267 ## device:
268 #  Sets the device name for the default playback device.
269 #device = default
271 ## device-prefix:
272 #  Sets the prefix used by the discovered (non-default) playback devices. This
273 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
274 #  device index for the requested device name.
275 #device-prefix = plughw:
277 ## device-prefix-*:
278 #  Card- and device-specific prefixes may be used to override the device-prefix
279 #  option. The option may specify the card id (eg, device-prefix-NVidia), or
280 #  the card id and device index (eg, device-prefix-NVidia-0). The card id is
281 #  case-sensitive.
282 #device-prefix- =
284 ## capture:
285 #  Sets the device name for the default capture device.
286 #capture = default
288 ## capture-prefix:
289 #  Sets the prefix used by the discovered (non-default) capture devices. This
290 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
291 #  device number for the requested device name.
292 #capture-prefix = plughw:
294 ## capture-prefix-*:
295 #  Card- and device-specific prefixes may be used to override the
296 #  capture-prefix option. The option may specify the card id (eg,
297 #  capture-prefix-NVidia), or the card id and device index (eg,
298 #  capture-prefix-NVidia-0). The card id is case-sensitive.
299 #capture-prefix- =
301 ## mmap:
302 #  Sets whether to try using mmap mode (helps reduce latencies and CPU
303 #  consumption). If mmap isn't available, it will automatically fall back to
304 #  non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
305 #  and anything else will force mmap off.
306 #mmap = true
309 ## OSS backend stuff
311 [oss]
313 ## device:
314 #  Sets the device name for OSS output.
315 #device = /dev/dsp
317 ## capture:
318 #  Sets the device name for OSS capture.
319 #capture = /dev/dsp
322 ## Solaris backend stuff
324 [solaris]
326 ## device:
327 #  Sets the device name for Solaris output.
328 #device = /dev/audio
331 ## QSA backend stuff
333 [qsa]
335 ## device:
336 #  Sets the device name for the default playback device.
337 #device = default
339 ## capture:
340 #  Sets the device name for the default capture device.
341 #capture = default
344 ## MMDevApi backend stuff
346 [mmdevapi]
349 ## DirectSound backend stuff
351 [dsound]
354 ## Windows Multimedia backend stuff
356 [winmm]
359 ## PortAudio backend stuff
361 [port]
363 ## device:
364 #  Sets the device index for output. Negative values will use the default as
365 #  given by PortAudio itself.
366 #device = -1
368 ## capture:
369 #  Sets the device index for capture. Negative values will use the default as
370 #  given by PortAudio itself.
371 #capture = -1
374 ## Wave File Writer stuff
376 [wave]
378 ## file:
379 #  Sets the filename of the wave file to write to. An empty name prevents the
380 #  backend from opening, even when explicitly requested.
381 #  THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
382 #file =