Allow selecting a preferred HRTF in alsoft-config
[openal-soft.git] / alsoftrc.sample
blob9eb9740e58b650af727b2c43aa5ee277c2cd34f5
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 ## default-hrtf:
100 #  Specifies the default HRTF to use. When multiple HRTFs are available, this
101 #  determines the preferred one to use if none are specifically requested. Note
102 #  that this is the enumerated HRTF name, not necessarily the filename.
103 #default-hrtf =
105 ## hrtf_tables:
106 #  Specifies a comma-separated list of files containing HRTF data sets. The
107 #  format of the files are described in hrtf.txt. The filenames may contain
108 #  these markers, which will be replaced as needed:
109 #  %r - Device sampling rate
110 #  %s - Non-greedy string (up to the following matching characters)
111 #  %% - Percent sign (%)
112 #  The listed files are relative to system-dependant data directories. On
113 #  Windows this is:
114 #  $AppData\openal\hrtf
115 #  And on other systems, it's (in order):
116 #  $XDG_DATA_HOME/openal/hrtf  (defaults to $HOME/.local/share/openal/hrtf)
117 #  $XDG_DATA_DIRS/openal/hrtf  (defaults to /usr/local/share/openal/hrtf and
118 #                               /usr/share/openal/hrtf)
119 #  An absolute path may also be specified, if the given file is elsewhere.
120 #hrtf_tables = %s.mhr
122 ## cf_level:
123 #  Sets the crossfeed level for stereo output. Valid values are:
124 #  0 - No crossfeed
125 #  1 - Low crossfeed
126 #  2 - Middle crossfeed
127 #  3 - High crossfeed (virtual speakers are closer to itself)
128 #  4 - Low easy crossfeed
129 #  5 - Middle easy crossfeed
130 #  6 - High easy crossfeed
131 #  Users of headphones may want to try various settings. Has no effect on non-
132 #  stereo modes.
133 #cf_level = 0
135 ## resampler: (global)
136 #  Selects the resampler used when mixing sources. Valid values are:
137 #  point - nearest sample, no interpolation
138 #  linear - extrapolates samples using a linear slope between samples
139 #  sinc4 - extrapolates samples using a 4-point Sinc filter
140 #  sinc8 - extrapolates samples using an 8-point Sinc filter
141 #  bsinc - extrapolates samples using a band-limited Sinc filter (varying
142 #          between 12 and 24 points, with anti-aliasing)
143 #  Specifying other values will result in using the default (linear).
144 #resampler = linear
146 ## rt-prio: (global)
147 #  Sets real-time priority for the mixing thread. Not all drivers may use this
148 #  (eg. PortAudio) as they already control the priority of the mixing thread.
149 #  0 and negative values will disable it. Note that this may constitute a
150 #  security risk since a real-time priority thread can indefinitely block
151 #  normal-priority threads if it fails to wait. As such, the default is
152 #  disabled.
153 #rt-prio = 0
155 ## sources:
156 #  Sets the maximum number of allocatable sources. Lower values may help for
157 #  systems with apps that try to play more sounds than the CPU can handle.
158 #sources = 256
160 ## slots:
161 #  Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
162 #  can use a non-negligible amount of CPU time if an effect is set on it even
163 #  if no sources are feeding it, so this may help when apps use more than the
164 #  system can handle.
165 #slots = 4
167 ## sends:
168 #  Sets the number of auxiliary sends per source. When not specified (default),
169 #  it allows the app to request how many it wants. The maximum value currently
170 #  possible is 4.
171 #sends =
173 ## excludefx: (global)
174 #  Sets which effects to exclude, preventing apps from using them. This can
175 #  help for apps that try to use effects which are too CPU intensive for the
176 #  system to handle. Available effects are: eaxreverb,reverb,chorus,compressor,
177 #  distortion,echo,equalizer,flanger,modulator,dedicated
178 #excludefx =
180 ## default-reverb: (global)
181 #  A reverb preset that applies by default to all sources on send 0
182 #  (applications that set their own slots on send 0 will override this).
183 #  Available presets are: None, Generic, PaddedCell, Room, Bathroom,
184 #  Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
185 #  CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
186 #  Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
187 #default-reverb =
189 ## trap-alc-error: (global)
190 #  Generates a SIGTRAP signal when an ALC device error is generated, on systems
191 #  that support it. This helps when debugging, while trying to find the cause
192 #  of a device error. On Windows, a breakpoint exception is generated.
193 #trap-alc-error = false
195 ## trap-al-error: (global)
196 #  Generates a SIGTRAP signal when an AL context error is generated, on systems
197 #  that support it. This helps when debugging, while trying to find the cause
198 #  of a context error. On Windows, a breakpoint exception is generated.
199 #trap-al-error = false
202 ## Reverb effect stuff (includes EAX reverb)
204 [reverb]
206 ## boost: (global)
207 #  A global amplification for reverb output, expressed in decibels. The value
208 #  is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
209 #  scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
210 #  value of 0 means no change.
211 #boost = 0
213 ## emulate-eax: (global)
214 #  Allows the standard reverb effect to be used in place of EAX reverb. EAX
215 #  reverb processing is a bit more CPU intensive than standard, so this option
216 #  allows a simpler effect to be used at the loss of some quality.
217 #emulate-eax = false
220 ## PulseAudio backend stuff
222 [pulse]
224 ## spawn-server: (global)
225 #  Attempts to autospawn a PulseAudio server whenever needed (initializing the
226 #  backend, enumerating devices, etc). Setting autospawn to false in Pulse's
227 #  client.conf will still prevent autospawning even if this is set to true.
228 #spawn-server = true
230 ## allow-moves: (global)
231 #  Allows PulseAudio to move active streams to different devices. Note that the
232 #  device specifier (seen by applications) will not be updated when this
233 #  occurs, and neither will the AL device configuration (sample rate, format,
234 #  etc).
235 #allow-moves = false
237 ## fix-rate:
238 #  Specifies whether to match the playback stream's sample rate to the device's
239 #  sample rate. Enabling this forces OpenAL Soft to mix sources and effects
240 #  directly to the actual output rate, avoiding a second resample pass by the
241 #  PulseAudio server.
242 #fix-rate = false
245 ## ALSA backend stuff
247 [alsa]
249 ## device: (global)
250 #  Sets the device name for the default playback device.
251 #device = default
253 ## device-prefix: (global)
254 #  Sets the prefix used by the discovered (non-default) playback devices. This
255 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
256 #  device index for the requested device name.
257 #device-prefix = plughw:
259 ## device-prefix-*: (global)
260 #  Card- and device-specific prefixes may be used to override the device-prefix
261 #  option. The option may specify the card id (eg, device-prefix-NVidia), or
262 #  the card id and device index (eg, device-prefix-NVidia-0). The card id is
263 #  case-sensitive.
264 #device-prefix- =
266 ## capture: (global)
267 #  Sets the device name for the default capture device.
268 #capture = default
270 ## capture-prefix: (global)
271 #  Sets the prefix used by the discovered (non-default) capture devices. This
272 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
273 #  device number for the requested device name.
274 #capture-prefix = plughw:
276 ## capture-prefix-*: (global)
277 #  Card- and device-specific prefixes may be used to override the
278 #  capture-prefix option. The option may specify the card id (eg,
279 #  capture-prefix-NVidia), or the card id and device index (eg,
280 #  capture-prefix-NVidia-0). The card id is case-sensitive.
281 #capture-prefix- =
283 ## mmap:
284 #  Sets whether to try using mmap mode (helps reduce latencies and CPU
285 #  consumption). If mmap isn't available, it will automatically fall back to
286 #  non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
287 #  and anything else will force mmap off.
288 #mmap = true
290 ## allow-resampler:
291 #  Specifies whether to allow ALSA's built-in resampler. Enabling this will
292 #  allow the playback device to be set to a different sample rate than the
293 #  actual output, causing ALSA to apply its own resampling pass after OpenAL
294 #  Soft resamples and mixes the sources and effects for output.
295 #allow-resampler = false
298 ## OSS backend stuff
300 [oss]
302 ## device: (global)
303 #  Sets the device name for OSS output.
304 #device = /dev/dsp
306 ## capture: (global)
307 #  Sets the device name for OSS capture.
308 #capture = /dev/dsp
311 ## Solaris backend stuff
313 [solaris]
315 ## device: (global)
316 #  Sets the device name for Solaris output.
317 #device = /dev/audio
320 ## QSA backend stuff
322 [qsa]
325 ## JACK backend stuff
327 [jack]
329 ## spawn-server: (global)
330 #  Attempts to autospawn a JACK server whenever needed (initializing the
331 #  backend, opening devices, etc).
332 #spawn-server = false
334 ## buffer-size:
335 #  Sets the update buffer size, in samples, that the backend will keep buffered
336 #  to handle the server's real-time processing requests. This value must be a
337 #  power of 2, or else it will be rounded up to the next power of 2. If it is
338 #  less than JACK's buffer update size, it will be clamped. This option may
339 #  be useful in case the server's update size is too small and doesn't give the
340 #  mixer time to keep enough audio available for the processing requests.
341 #buffer-size = 0
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: (global)
364 #  Sets the device index for output. Negative values will use the default as
365 #  given by PortAudio itself.
366 #device = -1
368 ## capture: (global)
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: (global)
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 =
384 ## bformat: (global)
385 #  Creates AMB format files using first-order ambisonics instead of a standard
386 #  single- or multi-channel .wav file.
387 #bformat = false