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/xdg/alsoft.conf (as determined by
18 # the XDG_CONFIG_DIRS env var list, /etc/xdg being the default if unset) and
19 # user-specific override settings in $HOME/.config/alsoft.conf (as determined
20 # by the XDG_CONFIG_HOME env var).
22 # For Windows, these settings should go into $AppData\alsoft.ini
24 # An additional configuration file (alsoft.ini on Windows, alsoft.conf on other
25 # OSs) can be placed alongside the process executable for app-specific config
28 # Option and block names are case-senstive. The supplied values are only hints
29 # and may not be honored (though generally it'll try to get as close as
30 # possible). Note: options that are left unset may default to app- or system-
31 # specified values. These are the current available settings:
38 ## disable-cpu-exts: (global)
39 # Disables use of specialized methods that use specific CPU intrinsics.
40 # Certain methods may utilize CPU extensions for improved performance, and
41 # this option is useful for preventing some or all of those methods from being
42 # used. The available extensions are: sse, sse2, sse3, sse4.1, and neon.
43 # Specifying 'all' disables use of all such specialized methods.
47 # Sets the backend driver list order, comma-seperated. Unknown backends and
48 # duplicated names are ignored. Unlisted backends won't be considered for use
49 # unless the list is ended with a comma (e.g. 'oss,' will try OSS first before
50 # other backends, while 'oss' will try OSS only). Backends prepended with -
51 # won't be considered for use (e.g. '-oss,' will try all available backends
52 # except OSS). An empty list means to try all backends.
56 # Sets the output channel configuration. If left unspecified, one will try to
57 # be detected from the system, and defaulting to stereo. The available values
58 # are: mono, stereo, quad, surround51, surround61, surround71, surround3d71,
59 # ambi1, ambi2, ambi3. Note that the ambi* configurations provide ambisonic
60 # channels of the given order (using ACN ordering and SN3D normalization by
61 # default), which need to be decoded to play correctly on speakers.
65 # Sets the output sample type. Currently, all mixing is done with 32-bit float
66 # and converted to the output sample type as needed. Available values are:
67 # int8 - signed 8-bit int
68 # uint8 - unsigned 8-bit int
69 # int16 - signed 16-bit int
70 # uint16 - unsigned 16-bit int
71 # int32 - signed 32-bit int
72 # uint32 - unsigned 32-bit int
73 # float32 - 32-bit float
74 #sample-type = float32
77 # Sets the output frequency. If left unspecified it will try to detect a
78 # default from the system, otherwise it will default to 44100.
82 # Sets the update period size, in sample frames. This is the number of frames
83 # needed for each mixing update. Acceptable values range between 64 and 8192.
84 # If left unspecified it will default to 1/50th of the frequency (20ms, or 882
85 # for 44100, 960 for 48000, etc).
89 # Sets the number of update periods. Higher values create a larger mix ahead,
90 # which helps protect against skips when the CPU is under load, but increases
91 # the delay between a sound getting mixed and being heard. Acceptable values
92 # range between 2 and 16.
96 # Specifies if stereo output is treated as being headphones or speakers. With
97 # headphones, HRTF or crossfeed filters may be used for better audio quality.
98 # Valid settings are auto, speakers, and headphones.
102 # Specifies the encoding method for non-HRTF stereo output. 'panpot' (default)
103 # uses standard amplitude panning (aka pair-wise, stereo pair, etc) between
104 # -30 and +30 degrees, while 'uhj' creates stereo-compatible two-channel UHJ
105 # output, which encodes some surround sound information into stereo output
106 # that can be decoded with a surround sound receiver. If crossfeed filters are
107 # used, UHJ is disabled.
108 #stereo-encoding = panpot
111 # Specifies the channel order and normalization for the "ambi*" set of channel
112 # configurations. Valid settings are: fuma, acn+fuma, ambix (or acn+sn3d), or
117 # Controls HRTF processing. These filters provide better spatialization of
118 # sounds while using headphones, but do require a bit more CPU power. While
119 # HRTF is used, the cf_level option is ignored. Setting this to auto (default)
120 # will allow HRTF to be used when headphones are detected or the app requests
121 # it, while setting true or false will forcefully enable or disable HRTF
126 # Specifies the rendering mode for HRTF processing. Setting the mode to full
127 # (default) applies a unique HRIR filter to each source given its relative
128 # location, providing the clearest directional response at the cost of the
129 # highest CPU usage. Setting the mode to ambi1, ambi2, or ambi3 will instead
130 # mix to a first-, second-, or third-order ambisonic buffer respectively, then
131 # decode that buffer with HRTF filters. Ambi1 has the lowest CPU usage,
132 # replacing the per-source HRIR filter for a simple 4-channel panning mix, but
133 # retains full 3D placement at the cost of a more diffuse response. Ambi2 and
134 # ambi3 increasingly improve the directional clarity, at the cost of more CPU
135 # usage (still less than "full", given some number of active sources).
139 # Specifies the impulse response size, in samples, for the HRTF filter. Larger
140 # values increase the filter quality, while smaller values reduce processing
141 # cost. A value of 0 (default) uses the full filter size in the dataset, and
142 # the default dataset has a filter size of 32 samples at 44.1khz.
146 # Specifies the default HRTF to use. When multiple HRTFs are available, this
147 # determines the preferred one to use if none are specifically requested. Note
148 # that this is the enumerated HRTF name, not necessarily the filename.
152 # Specifies a comma-separated list of paths containing HRTF data sets. The
153 # format of the files are described in docs/hrtf.txt. The files within the
154 # directories must have the .mhr file extension to be recognized. By default,
155 # OS-dependent data paths will be used. They will also be used if the list
156 # ends with a comma. On Windows this is:
157 # $AppData\openal\hrtf
158 # And on other systems, it's (in order):
159 # $XDG_DATA_HOME/openal/hrtf (defaults to $HOME/.local/share/openal/hrtf)
160 # $XDG_DATA_DIRS/openal/hrtf (defaults to /usr/local/share/openal/hrtf and
161 # /usr/share/openal/hrtf)
165 # Sets the crossfeed level for stereo output. Valid values are:
168 # 2 - Middle crossfeed
169 # 3 - High crossfeed (virtual speakers are closer to itself)
170 # 4 - Low easy crossfeed
171 # 5 - Middle easy crossfeed
172 # 6 - High easy crossfeed
173 # Users of headphones may want to try various settings. Has no effect on non-
177 ## resampler: (global)
178 # Selects the default resampler used when mixing sources. Valid values are:
179 # point - nearest sample, no interpolation
180 # linear - extrapolates samples using a linear slope between samples
181 # cubic - extrapolates samples using a Catmull-Rom spline
182 # bsinc12 - extrapolates samples using a band-limited Sinc filter (varying
183 # between 12 and 24 points, with anti-aliasing)
184 # fast_bsinc12 - same as bsinc12, except without interpolation between down-
186 # bsinc24 - extrapolates samples using a band-limited Sinc filter (varying
187 # between 24 and 48 points, with anti-aliasing)
188 # fast_bsinc24 - same as bsinc24, except without interpolation between down-
193 # Sets the real-time priority value for the mixing thread. Not all drivers may
194 # use this (eg. PortAudio) as those APIs already control the priority of the
195 # mixing thread. 0 and negative values will disable real-time priority. Note
196 # that this may constitute a security risk since a real-time priority thread
197 # can indefinitely block normal-priority threads if it fails to wait. Disable
198 # this if it turns out to be a problem.
201 ## rt-time-limit: (global)
202 # On non-Windows systems, allows reducing the process's RLIMIT_RTTIME resource
203 # as necessary for acquiring real-time priority from RTKit.
204 #rt-time-limit = true
207 # Sets the maximum number of allocatable sources. Lower values may help for
208 # systems with apps that try to play more sounds than the CPU can handle.
212 # Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
213 # can use a non-negligible amount of CPU time if an effect is set on it even
214 # if no sources are feeding it, so this may help when apps use more than the
219 # Limits the number of auxiliary sends allowed per source. Setting this higher
220 # than the default has no effect.
224 # Applies filters to "stablize" front sound imaging. A psychoacoustic method
225 # is used to generate a front-center channel signal from the front-left and
226 # front-right channels, improving the front response by reducing the combing
227 # artifacts and phase errors. Consequently, it will only work with channel
228 # configurations that include front-left, front-right, and front-center.
229 #front-stablizer = false
232 # Applies a gain limiter on the final mixed output. This reduces the volume
233 # when the output samples would otherwise clamp, avoiding excessive clipping
235 #output-limiter = true
238 # Applies dithering on the final mix, for 8- and 16-bit output by default.
239 # This replaces the distortion created by nearest-value quantization with low-
244 # Quantization bit-depth for dithered output. A value of 0 (or less) will
245 # match the output sample depth. For int32, uint32, and float32 output, 0 will
246 # disable dithering because they're at or beyond the rendered precision. The
247 # maximum dither depth is 24.
251 # A global volume adjustment for source output, expressed in decibels. The
252 # value is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will
253 # be a scale of 4x, etc. Similarly, -6 will be x1/2, and -12 is about x1/4. A
254 # value of 0 means no change.
257 ## excludefx: (global)
258 # Sets which effects to exclude, preventing apps from using them. This can
259 # help for apps that try to use effects which are too CPU intensive for the
260 # system to handle. Available effects are: eaxreverb,reverb,autowah,chorus,
261 # compressor,distortion,echo,equalizer,flanger,modulator,dedicated,pshifter,
265 ## default-reverb: (global)
266 # A reverb preset that applies by default to all sources on send 0
267 # (applications that set their own slots on send 0 will override this).
268 # Available presets are: None, Generic, PaddedCell, Room, Bathroom,
269 # Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
270 # CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
271 # Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
274 ## trap-alc-error: (global)
275 # Generates a SIGTRAP signal when an ALC device error is generated, on systems
276 # that support it. This helps when debugging, while trying to find the cause
277 # of a device error. On Windows, a breakpoint exception is generated.
278 #trap-alc-error = false
280 ## trap-al-error: (global)
281 # Generates a SIGTRAP signal when an AL context error is generated, on systems
282 # that support it. This helps when debugging, while trying to find the cause
283 # of a context error. On Windows, a breakpoint exception is generated.
284 #trap-al-error = false
287 ## Ambisonic decoder stuff
292 # Enables a high-quality ambisonic decoder. This mode is capable of frequency-
293 # dependent processing, creating a better reproduction of 3D sound rendering
294 # over surround sound speakers.
298 # Enables compensation for the speakers' relative distances to the listener.
299 # This applies the necessary delays and attenuation to make the speakers
300 # behave as though they are all equidistant, which is important for proper
301 # playback of 3D sound rendering. Requires the proper distances to be
302 # specified in the decoder configuration file.
303 #distance-comp = true
306 # Enables near-field control filters. This simulates and compensates for low-
307 # frequency effects caused by the curvature of nearby sound-waves, which
308 # creates a more realistic perception of sound distance. Note that the effect
309 # may be stronger or weaker than intended if the application doesn't use or
310 # specify an appropriate unit scale, or if incorrect speaker distances are set
311 # in the decoder configuration file.
315 # Specifies the reference delay value for ambisonic output when NFC filters
316 # are enabled. If channels is set to one of the ambi* formats, this option
317 # enables NFC-HOA output with the specified Reference Delay parameter. The
318 # specified value can then be shared with an appropriate NFC-HOA decoder to
319 # reproduce correct near-field effects. Keep in mind that despite being
320 # designed for higher-order ambisonics, this also applies to first-order
321 # output. When left unset, normal output is created with no near-field
322 # simulation. Requires the nfc option to also be enabled.
326 # Decoder configuration file for Quadraphonic channel output. See
327 # docs/ambdec.txt for a description of the file format.
331 # Decoder configuration file for 5.1 Surround (Side and Rear) channel output.
332 # See docs/ambdec.txt for a description of the file format.
336 # Decoder configuration file for 6.1 Surround channel output. See
337 # docs/ambdec.txt for a description of the file format.
341 # Decoder configuration file for 7.1 Surround channel output. See
342 # docs/ambdec.txt for a description of the file format.
346 # Decoder configuration file for 3D7.1 Surround channel output. See
347 # docs/ambdec.txt for a description of the file format. See also
348 # docs/3D7.1.txt for information about 3D7.1.
352 ## Reverb effect stuff (includes EAX reverb)
357 # A global amplification for reverb output, expressed in decibels. The value
358 # is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
359 # scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
360 # value of 0 means no change.
364 ## PipeWire backend stuff
368 ## assume-audio: (global)
369 # Causes the backend to succeed initialization even if PipeWire reports no
370 # audio support. Currently, audio support is detected by the presence of audio
371 # source or sink nodes, although this can cause false negatives in cases where
372 # device availability during library initialization is spotty. Future versions
373 # of PipeWire are expected to have a more robust method to test audio support,
374 # but in the mean time this can be set to true to assume PipeWire has audio
375 # support even when no nodes may be reported at initialization time.
376 #assume-audio = false
379 ## PulseAudio backend stuff
383 ## spawn-server: (global)
384 # Attempts to autospawn a PulseAudio server whenever needed (initializing the
385 # backend, enumerating devices, etc). Setting autospawn to false in Pulse's
386 # client.conf will still prevent autospawning even if this is set to true.
389 ## allow-moves: (global)
390 # Allows PulseAudio to move active streams to different devices. Note that the
391 # device specifier (seen by applications) will not be updated when this
392 # occurs, and neither will the AL device configuration (sample rate, format,
397 # Specifies whether to match the playback stream's sample rate to the device's
398 # sample rate. Enabling this forces OpenAL Soft to mix sources and effects
399 # directly to the actual output rate, avoiding a second resample pass by the
404 # Attempts to adjust the overall latency of device playback. Note that this
405 # may have adverse effects on the resulting internal buffer sizes and mixing
406 # updates, leading to performance problems and drop-outs. However, if the
407 # PulseAudio server is creating a lot of latency, enabling this may help make
408 # it more manageable.
409 #adjust-latency = false
412 ## ALSA backend stuff
417 # Sets the device name for the default playback device.
420 ## device-prefix: (global)
421 # Sets the prefix used by the discovered (non-default) playback devices. This
422 # will be appended with "CARD=c,DEV=d", where c is the card id and d is the
423 # device index for the requested device name.
424 #device-prefix = plughw:
426 ## device-prefix-*: (global)
427 # Card- and device-specific prefixes may be used to override the device-prefix
428 # option. The option may specify the card id (eg, device-prefix-NVidia), or
429 # the card id and device index (eg, device-prefix-NVidia-0). The card id is
433 ## custom-devices: (global)
434 # Specifies a list of enumerated playback devices and the ALSA devices they
435 # refer to. The list pattern is "Display Name=ALSA device;...". The display
436 # names will be returned for device enumeration, and the ALSA device is the
437 # device name to open for each enumerated device.
441 # Sets the device name for the default capture device.
444 ## capture-prefix: (global)
445 # Sets the prefix used by the discovered (non-default) capture devices. This
446 # will be appended with "CARD=c,DEV=d", where c is the card id and d is the
447 # device number for the requested device name.
448 #capture-prefix = plughw:
450 ## capture-prefix-*: (global)
451 # Card- and device-specific prefixes may be used to override the
452 # capture-prefix option. The option may specify the card id (eg,
453 # capture-prefix-NVidia), or the card id and device index (eg,
454 # capture-prefix-NVidia-0). The card id is case-sensitive.
457 ## custom-captures: (global)
458 # Specifies a list of enumerated capture devices and the ALSA devices they
459 # refer to. The list pattern is "Display Name=ALSA device;...". The display
460 # names will be returned for device enumeration, and the ALSA device is the
461 # device name to open for each enumerated device.
465 # Sets whether to try using mmap mode (helps reduce latencies and CPU
466 # consumption). If mmap isn't available, it will automatically fall back to
467 # non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
468 # and anything else will force mmap off.
472 # Specifies whether to allow ALSA's built-in resampler. Enabling this will
473 # allow the playback device to be set to a different sample rate than the
474 # actual output, causing ALSA to apply its own resampling pass after OpenAL
475 # Soft resamples and mixes the sources and effects for output.
476 #allow-resampler = false
484 # Sets the device name for OSS output.
488 # Sets the device name for OSS capture.
492 ## Solaris backend stuff
497 # Sets the device name for Solaris output.
506 ## JACK backend stuff
510 ## spawn-server: (global)
511 # Attempts to autospawn a JACK server when initializing.
512 #spawn-server = false
514 ## custom-devices: (global)
515 # Specifies a list of enumerated devices and the ports they connect to. The
516 # list pattern is "Display Name=ports regex;Display Name=ports regex;...". The
517 # display names will be returned for device enumeration, and the ports regex
518 # is the regular expression to identify the target ports on the server (as
519 # given by the jack_get_ports function) for each enumerated device.
523 # Renders samples directly in the real-time processing callback. This allows
524 # for lower latency and less overall CPU utilization, but can increase the
525 # risk of underruns when increasing the amount of work the mixer needs to do.
529 # Attempts to automatically connect the client ports to physical server ports.
530 # Client ports that fail to connect will leave the remaining channels
531 # unconnected and silent (the device format won't change to accommodate).
532 #connect-ports = true
535 # Sets the update buffer size, in samples, that the backend will keep buffered
536 # to handle the server's real-time processing requests. This value must be a
537 # power of 2, or else it will be rounded up to the next power of 2. If it is
538 # less than JACK's buffer update size, it will be clamped. This option may
539 # be useful in case the server's update size is too small and doesn't give the
540 # mixer time to keep enough audio available for the processing requests.
541 # Ignored when rt-mix is true.
545 ## WASAPI backend stuff
550 ## DirectSound backend stuff
555 ## Windows Multimedia backend stuff
560 ## PortAudio backend stuff
565 # Sets the device index for output. Negative values will use the default as
566 # given by PortAudio itself.
570 # Sets the device index for capture. Negative values will use the default as
571 # given by PortAudio itself.
575 ## Wave File Writer stuff
580 # Sets the filename of the wave file to write to. An empty name prevents the
581 # backend from opening, even when explicitly requested.
582 # THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
586 # Creates AMB format files using first-order ambisonics instead of a standard
587 # single- or multi-channel .wav file.
591 ## EAX extensions stuff
596 # Sets whether to enable EAX extensions or not.
600 ## Per-game compatibility options (these should only be set in per-game config
601 ## files, *NOT* system- or user-level!)
605 ## reverse-x: (global)
606 # Reverses the local X (left-right) position of 3D sound sources.
609 ## reverse-y: (global)
610 # Reverses the local Y (up-down) position of 3D sound sources.
613 ## reverse-z: (global)
614 # Reverses the local Z (front-back) position of 3D sound sources.