Avoid an extra sample of delay in the reverb modulator
[openal-soft.git] / alsoftrc.sample
blob039dba6a2da2bc6633bcfc55349b724145258283
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 # Device-specific values may be specified by including the device name in the
12 # block name, with "general" replaced by the device name. That is, general
13 # options for the device "Name of Device" would be in the [Name of Device]
14 # block, while ALSA options would be in the [alsa/Name of Device] block.
15 # Options marked as "(global)" are not influenced by the device.
17 # The system-wide settings can be put in /etc/openal/alsoft.conf and user-
18 # specific override settings in $HOME/.alsoftrc.
19 # For Windows, these settings should go into $AppData\alsoft.ini
21 # Option and block names are case-senstive. The supplied values are only hints
22 # and may not be honored (though generally it'll try to get as close as
23 # possible). Note: options that are left unset may default to app- or system-
24 # specified values. These are the current available settings:
27 ## General stuff
29 [general]
31 ## disable-cpu-exts: (global)
32 #  Disables use of specialized methods that use specific CPU intrinsics.
33 #  Certain methods may utilize CPU extensions for improved performance, and
34 #  this option is useful for preventing some or all of those methods from being
35 #  used. The available extensions are: sse, sse2, sse3, sse4.1, and neon.
36 #  Specifying 'all' disables use of all such specialized methods.
37 #disable-cpu-exts =
39 ## drivers: (global)
40 #  Sets the backend driver list order, comma-seperated. Unknown backends and
41 #  duplicated names are ignored. Unlisted backends won't be considered for use
42 #  unless the list is ended with a comma (e.g. 'oss,' will try OSS first before
43 #  other backends, while 'oss' will try OSS only). Backends prepended with -
44 #  won't be considered for use (e.g. '-oss,' will try all available backends
45 #  except OSS). An empty list means to try all backends.
46 #drivers =
48 ## channels:
49 #  Sets the output channel configuration. If left unspecified, one will try to
50 #  be detected from the system, and defaulting to stereo. The available values
51 #  are: mono, stereo, quad, surround51, surround51rear, surround61, surround71
52 #channels =
54 ## sample-type:
55 #  Sets the output sample type. Currently, all mixing is done with 32-bit float
56 #  and converted to the output sample type as needed. Available values are:
57 #  int8    - signed 8-bit int
58 #  uint8   - unsigned 8-bit int
59 #  int16   - signed 16-bit int
60 #  uint16  - unsigned 16-bit int
61 #  int32   - signed 32-bit int
62 #  uint32  - unsigned 32-bit int
63 #  float32 - 32-bit float
64 #sample-type = float32
66 ## frequency:
67 #  Sets the output frequency. If left unspecified it will try to detect a
68 #  default from the system, otherwise it will default to 44100.
69 #frequency =
71 ## period_size:
72 #  Sets the update period size, in frames. This is the number of frames needed
73 #  for each mixing update. Acceptable values range between 64 and 8192.
74 #period_size = 1024
76 ## periods:
77 #  Sets the number of update periods. Higher values create a larger mix ahead,
78 #  which helps protect against skips when the CPU is under load, but increases
79 #  the delay between a sound getting mixed and being heard. Acceptable values
80 #  range between 2 and 16.
81 #periods = 4
83 ## stereo-mode:
84 #  Specifies if stereo output is treated as being headphones or speakers. With
85 #  headphones, HRTF or crossfeed filters may be used for better audio quality.
86 #  Valid settings are auto, speakers, and headphones.
87 #stereo-mode = auto
89 ## hrtf:
90 #  Controls HRTF processing. These filters provide better spatialization of
91 #  sounds while using headphones, but do require a bit more CPU power. The
92 #  default filters will only work with 44100hz or 48000hz stereo output. While
93 #  HRTF is used, the cf_level option is ignored. Setting this to auto (default)
94 #  will allow HRTF to be used when headphones are detected or the app requests
95 #  it, while setting true or false will forcefully enable or disable HRTF
96 #  respectively.
97 #hrtf = auto
99 ## hrtf_tables:
100 #  Specifies a comma-separated list of files containing HRTF data sets. The
101 #  format of the files are described in hrtf.txt. The filenames may contain
102 #  these markers, which will be replaced as needed:
103 #  %r - Device sampling rate
104 #  %s - Non-greedy string (up to the following matching characters)
105 #  %% - Percent sign (%)
106 #  The listed files are relative to system-dependant data directories. On
107 #  Windows this is:
108 #  $AppData\openal\hrtf
109 #  And on other systems, it's (in order):
110 #  $XDG_DATA_HOME/openal/hrtf  (defaults to $HOME/.local/share/openal/hrtf)
111 #  $XDG_DATA_DIRS/openal/hrtf  (defaults to /usr/local/share/openal/hrtf and
112 #                               /usr/share/openal/hrtf)
113 #  An absolute path may also be specified, if the given file is elsewhere.
114 #hrtf_tables = %s.mhr
116 ## cf_level:
117 #  Sets the crossfeed level for stereo output. Valid values are:
118 #  0 - No crossfeed
119 #  1 - Low crossfeed
120 #  2 - Middle crossfeed
121 #  3 - High crossfeed (virtual speakers are closer to itself)
122 #  4 - Low easy crossfeed
123 #  5 - Middle easy crossfeed
124 #  6 - High easy crossfeed
125 #  Users of headphones may want to try various settings. Has no effect on non-
126 #  stereo modes.
127 #cf_level = 0
129 ## resampler: (global)
130 #  Selects the resampler used when mixing sources. Valid values are:
131 #  point - nearest sample, no interpolation
132 #  linear - extrapolates samples using a linear slope between samples
133 #  sinc4 - extrapolates samples using a 4-point Sinc filter
134 #  sinc8 - extrapolates samples using an 8-point Sinc filter
135 #  bsinc - extrapolates samples using a band-limited Sinc filter (varying
136 #          between 12 and 24 points, with anti-aliasing)
137 #  Specifying other values will result in using the default (linear).
138 #resampler = linear
140 ## rt-prio: (global)
141 #  Sets real-time priority for the mixing thread. Not all drivers may use this
142 #  (eg. PortAudio) as they already control the priority of the mixing thread.
143 #  0 and negative values will disable it. Note that this may constitute a
144 #  security risk since a real-time priority thread can indefinitely block
145 #  normal-priority threads if it fails to wait. As such, the default is
146 #  disabled.
147 #rt-prio = 0
149 ## sources:
150 #  Sets the maximum number of allocatable sources. Lower values may help for
151 #  systems with apps that try to play more sounds than the CPU can handle.
152 #sources = 256
154 ## slots:
155 #  Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
156 #  can use a non-negligible amount of CPU time if an effect is set on it even
157 #  if no sources are feeding it, so this may help when apps use more than the
158 #  system can handle.
159 #slots = 4
161 ## sends:
162 #  Sets the number of auxiliary sends per source. When not specified (default),
163 #  it allows the app to request how many it wants. The maximum value currently
164 #  possible is 4.
165 #sends =
167 ## excludefx: (global)
168 #  Sets which effects to exclude, preventing apps from using them. This can
169 #  help for apps that try to use effects which are too CPU intensive for the
170 #  system to handle. Available effects are: eaxreverb,reverb,chorus,compressor,
171 #  distortion,echo,equalizer,flanger,modulator,dedicated
172 #excludefx =
174 ## default-reverb: (global)
175 #  A reverb preset that applies by default to all sources on send 0
176 #  (applications that set their own slots on send 0 will override this).
177 #  Available presets are: None, Generic, PaddedCell, Room, Bathroom,
178 #  Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
179 #  CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
180 #  Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
181 #default-reverb =
183 ## trap-alc-error: (global)
184 #  Generates a SIGTRAP signal when an ALC device error is generated, on systems
185 #  that support it. This helps when debugging, while trying to find the cause
186 #  of a device error. On Windows, a breakpoint exception is generated.
187 #trap-alc-error = false
189 ## trap-al-error: (global)
190 #  Generates a SIGTRAP signal when an AL context error is generated, on systems
191 #  that support it. This helps when debugging, while trying to find the cause
192 #  of a context error. On Windows, a breakpoint exception is generated.
193 #trap-al-error = false
196 ## Reverb effect stuff (includes EAX reverb)
198 [reverb]
200 ## boost: (global)
201 #  A global amplification for reverb output, expressed in decibels. The value
202 #  is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
203 #  scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
204 #  value of 0 means no change.
205 #boost = 0
207 ## emulate-eax: (global)
208 #  Allows the standard reverb effect to be used in place of EAX reverb. EAX
209 #  reverb processing is a bit more CPU intensive than standard, so this option
210 #  allows a simpler effect to be used at the loss of some quality.
211 #emulate-eax = false
214 ## PulseAudio backend stuff
216 [pulse]
218 ## spawn-server: (global)
219 #  Attempts to autospawn a PulseAudio server whenever needed (initializing the
220 #  backend, enumerating devices, etc). Setting autospawn to false in Pulse's
221 #  client.conf will still prevent autospawning even if this is set to true.
222 #spawn-server = true
224 ## allow-moves: (global)
225 #  Allows PulseAudio to move active streams to different devices. Note that the
226 #  device specifier (seen by applications) will not be updated when this
227 #  occurs, and neither will the AL device configuration (sample rate, format,
228 #  etc).
229 #allow-moves = false
231 ## fix-rate:
232 #  Specifies whether to match the playback stream's sample rate to the device's
233 #  sample rate. Enabling this forces OpenAL Soft to mix sources and effects
234 #  directly to the actual output rate, avoiding a second resample pass by the
235 #  PulseAudio server.
236 #fix-rate = false
239 ## ALSA backend stuff
241 [alsa]
243 ## device: (global)
244 #  Sets the device name for the default playback device.
245 #device = default
247 ## device-prefix: (global)
248 #  Sets the prefix used by the discovered (non-default) playback devices. This
249 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
250 #  device index for the requested device name.
251 #device-prefix = plughw:
253 ## device-prefix-*: (global)
254 #  Card- and device-specific prefixes may be used to override the device-prefix
255 #  option. The option may specify the card id (eg, device-prefix-NVidia), or
256 #  the card id and device index (eg, device-prefix-NVidia-0). The card id is
257 #  case-sensitive.
258 #device-prefix- =
260 ## capture: (global)
261 #  Sets the device name for the default capture device.
262 #capture = default
264 ## capture-prefix: (global)
265 #  Sets the prefix used by the discovered (non-default) capture devices. This
266 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
267 #  device number for the requested device name.
268 #capture-prefix = plughw:
270 ## capture-prefix-*: (global)
271 #  Card- and device-specific prefixes may be used to override the
272 #  capture-prefix option. The option may specify the card id (eg,
273 #  capture-prefix-NVidia), or the card id and device index (eg,
274 #  capture-prefix-NVidia-0). The card id is case-sensitive.
275 #capture-prefix- =
277 ## mmap:
278 #  Sets whether to try using mmap mode (helps reduce latencies and CPU
279 #  consumption). If mmap isn't available, it will automatically fall back to
280 #  non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
281 #  and anything else will force mmap off.
282 #mmap = true
284 ## allow-resampler:
285 #  Specifies whether to allow ALSA's built-in resampler. Enabling this will
286 #  allow the playback device to be set to a different sample rate than the
287 #  actual output, causing ALSA to apply its own resampling pass after OpenAL
288 #  Soft resamples and mixes the sources and effects for output.
289 #allow-resampler = false
292 ## OSS backend stuff
294 [oss]
296 ## device: (global)
297 #  Sets the device name for OSS output.
298 #device = /dev/dsp
300 ## capture: (global)
301 #  Sets the device name for OSS capture.
302 #capture = /dev/dsp
305 ## Solaris backend stuff
307 [solaris]
309 ## device: (global)
310 #  Sets the device name for Solaris output.
311 #device = /dev/audio
314 ## QSA backend stuff
316 [qsa]
319 ## JACK backend stuff
321 [jack]
323 ## spawn-server: (global)
324 #  Attempts to autospawn a JACK server whenever needed (initializing the
325 #  backend, opening devices, etc).
326 #spawn-server = false
328 ## buffer-size:
329 #  Sets the update buffer size, in samples, that the backend will keep buffered
330 #  to handle the server's real-time processing requests. This value must be a
331 #  power of 2, or else it will be rounded up to the next power of 2. If it is
332 #  less than JACK's buffer update size, it will be clamped. This option may
333 #  be useful in case the server's update size is too small and doesn't give the
334 #  mixer time to keep enough audio available for the processing requests.
335 #buffer-size = 0
338 ## MMDevApi backend stuff
340 [mmdevapi]
343 ## DirectSound backend stuff
345 [dsound]
348 ## Windows Multimedia backend stuff
350 [winmm]
353 ## PortAudio backend stuff
355 [port]
357 ## device: (global)
358 #  Sets the device index for output. Negative values will use the default as
359 #  given by PortAudio itself.
360 #device = -1
362 ## capture: (global)
363 #  Sets the device index for capture. Negative values will use the default as
364 #  given by PortAudio itself.
365 #capture = -1
368 ## Wave File Writer stuff
370 [wave]
372 ## file: (global)
373 #  Sets the filename of the wave file to write to. An empty name prevents the
374 #  backend from opening, even when explicitly requested.
375 #  THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
376 #file =
378 ## bformat: (global)
379 #  Creates AMB format files using first-order ambisonics instead of a standard
380 #  single- or multi-channel .wav file.
381 #bformat = false