Generalize GetChannelIdxByName
[openal-soft.git] / alsoftrc.sample
blob255f82d03e0242f60d817d37e37dabc2e12ada94
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 ## stereo-panning:
90 #  Specifies the panning method for non-HRTF stereo output. uhj (default)
91 #  creates stereo-compatible two-channel UHJ output, which encodes some
92 #  surround sound information, while paired uses standard pair-wise panning
93 #  between -30 and +30 degrees. If crossfeed filters are used, uhj panning is
94 #  disabled.
95 #stereo-panning = uhj
97 ## hrtf:
98 #  Controls HRTF processing. These filters provide better spatialization of
99 #  sounds while using headphones, but do require a bit more CPU power. The
100 #  default filters will only work with 44100hz or 48000hz stereo output. While
101 #  HRTF is used, the cf_level option is ignored. Setting this to auto (default)
102 #  will allow HRTF to be used when headphones are detected or the app requests
103 #  it, while setting true or false will forcefully enable or disable HRTF
104 #  respectively.
105 #hrtf = auto
107 ## default-hrtf:
108 #  Specifies the default HRTF to use. When multiple HRTFs are available, this
109 #  determines the preferred one to use if none are specifically requested. Note
110 #  that this is the enumerated HRTF name, not necessarily the filename.
111 #default-hrtf =
113 ## hrtf-paths:
114 #  Specifies a comma-separated list of paths containing HRTF data sets. The
115 #  format of the files are described in hrtf.txt. The files within the
116 #  directories must have the .mhr file extension to be recognized. By default,
117 #  OS-dependent data paths will be used. They will also be used if the list
118 #  ends with a comma. On Windows this is:
119 #  $AppData\openal\hrtf
120 #  And on other systems, it's (in order):
121 #  $XDG_DATA_HOME/openal/hrtf  (defaults to $HOME/.local/share/openal/hrtf)
122 #  $XDG_DATA_DIRS/openal/hrtf  (defaults to /usr/local/share/openal/hrtf and
123 #                               /usr/share/openal/hrtf)
124 #hrtf-paths =
126 ## cf_level:
127 #  Sets the crossfeed level for stereo output. Valid values are:
128 #  0 - No crossfeed
129 #  1 - Low crossfeed
130 #  2 - Middle crossfeed
131 #  3 - High crossfeed (virtual speakers are closer to itself)
132 #  4 - Low easy crossfeed
133 #  5 - Middle easy crossfeed
134 #  6 - High easy crossfeed
135 #  Users of headphones may want to try various settings. Has no effect on non-
136 #  stereo modes.
137 #cf_level = 0
139 ## resampler: (global)
140 #  Selects the resampler used when mixing sources. Valid values are:
141 #  point - nearest sample, no interpolation
142 #  linear - extrapolates samples using a linear slope between samples
143 #  sinc4 - extrapolates samples using a 4-point Sinc filter
144 #  sinc8 - extrapolates samples using an 8-point Sinc filter
145 #  bsinc - extrapolates samples using a band-limited Sinc filter (varying
146 #          between 12 and 24 points, with anti-aliasing)
147 #  Specifying other values will result in using the default (linear).
148 #resampler = linear
150 ## rt-prio: (global)
151 #  Sets real-time priority for the mixing thread. Not all drivers may use this
152 #  (eg. PortAudio) as they already control the priority of the mixing thread.
153 #  0 and negative values will disable it. Note that this may constitute a
154 #  security risk since a real-time priority thread can indefinitely block
155 #  normal-priority threads if it fails to wait. As such, the default is
156 #  disabled.
157 #rt-prio = 0
159 ## sources:
160 #  Sets the maximum number of allocatable sources. Lower values may help for
161 #  systems with apps that try to play more sounds than the CPU can handle.
162 #sources = 256
164 ## slots:
165 #  Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
166 #  can use a non-negligible amount of CPU time if an effect is set on it even
167 #  if no sources are feeding it, so this may help when apps use more than the
168 #  system can handle.
169 #slots = 4
171 ## sends:
172 #  Sets the number of auxiliary sends per source. When not specified (default),
173 #  it allows the app to request how many it wants. The maximum value currently
174 #  possible is 4.
175 #sends =
177 ## excludefx: (global)
178 #  Sets which effects to exclude, preventing apps from using them. This can
179 #  help for apps that try to use effects which are too CPU intensive for the
180 #  system to handle. Available effects are: eaxreverb,reverb,chorus,compressor,
181 #  distortion,echo,equalizer,flanger,modulator,dedicated
182 #excludefx =
184 ## default-reverb: (global)
185 #  A reverb preset that applies by default to all sources on send 0
186 #  (applications that set their own slots on send 0 will override this).
187 #  Available presets are: None, Generic, PaddedCell, Room, Bathroom,
188 #  Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
189 #  CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
190 #  Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
191 #default-reverb =
193 ## trap-alc-error: (global)
194 #  Generates a SIGTRAP signal when an ALC device error is generated, on systems
195 #  that support it. This helps when debugging, while trying to find the cause
196 #  of a device error. On Windows, a breakpoint exception is generated.
197 #trap-alc-error = false
199 ## trap-al-error: (global)
200 #  Generates a SIGTRAP signal when an AL context error is generated, on systems
201 #  that support it. This helps when debugging, while trying to find the cause
202 #  of a context error. On Windows, a breakpoint exception is generated.
203 #trap-al-error = false
206 ## Reverb effect stuff (includes EAX reverb)
208 [reverb]
210 ## boost: (global)
211 #  A global amplification for reverb output, expressed in decibels. The value
212 #  is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
213 #  scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
214 #  value of 0 means no change.
215 #boost = 0
217 ## emulate-eax: (global)
218 #  Allows the standard reverb effect to be used in place of EAX reverb. EAX
219 #  reverb processing is a bit more CPU intensive than standard, so this option
220 #  allows a simpler effect to be used at the loss of some quality.
221 #emulate-eax = false
224 ## PulseAudio backend stuff
226 [pulse]
228 ## spawn-server: (global)
229 #  Attempts to autospawn a PulseAudio server whenever needed (initializing the
230 #  backend, enumerating devices, etc). Setting autospawn to false in Pulse's
231 #  client.conf will still prevent autospawning even if this is set to true.
232 #spawn-server = true
234 ## allow-moves: (global)
235 #  Allows PulseAudio to move active streams to different devices. Note that the
236 #  device specifier (seen by applications) will not be updated when this
237 #  occurs, and neither will the AL device configuration (sample rate, format,
238 #  etc).
239 #allow-moves = false
241 ## fix-rate:
242 #  Specifies whether to match the playback stream's sample rate to the device's
243 #  sample rate. Enabling this forces OpenAL Soft to mix sources and effects
244 #  directly to the actual output rate, avoiding a second resample pass by the
245 #  PulseAudio server.
246 #fix-rate = false
249 ## ALSA backend stuff
251 [alsa]
253 ## device: (global)
254 #  Sets the device name for the default playback device.
255 #device = default
257 ## device-prefix: (global)
258 #  Sets the prefix used by the discovered (non-default) playback devices. This
259 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
260 #  device index for the requested device name.
261 #device-prefix = plughw:
263 ## device-prefix-*: (global)
264 #  Card- and device-specific prefixes may be used to override the device-prefix
265 #  option. The option may specify the card id (eg, device-prefix-NVidia), or
266 #  the card id and device index (eg, device-prefix-NVidia-0). The card id is
267 #  case-sensitive.
268 #device-prefix- =
270 ## capture: (global)
271 #  Sets the device name for the default capture device.
272 #capture = default
274 ## capture-prefix: (global)
275 #  Sets the prefix used by the discovered (non-default) capture devices. This
276 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
277 #  device number for the requested device name.
278 #capture-prefix = plughw:
280 ## capture-prefix-*: (global)
281 #  Card- and device-specific prefixes may be used to override the
282 #  capture-prefix option. The option may specify the card id (eg,
283 #  capture-prefix-NVidia), or the card id and device index (eg,
284 #  capture-prefix-NVidia-0). The card id is case-sensitive.
285 #capture-prefix- =
287 ## mmap:
288 #  Sets whether to try using mmap mode (helps reduce latencies and CPU
289 #  consumption). If mmap isn't available, it will automatically fall back to
290 #  non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
291 #  and anything else will force mmap off.
292 #mmap = true
294 ## allow-resampler:
295 #  Specifies whether to allow ALSA's built-in resampler. Enabling this will
296 #  allow the playback device to be set to a different sample rate than the
297 #  actual output, causing ALSA to apply its own resampling pass after OpenAL
298 #  Soft resamples and mixes the sources and effects for output.
299 #allow-resampler = false
302 ## OSS backend stuff
304 [oss]
306 ## device: (global)
307 #  Sets the device name for OSS output.
308 #device = /dev/dsp
310 ## capture: (global)
311 #  Sets the device name for OSS capture.
312 #capture = /dev/dsp
315 ## Solaris backend stuff
317 [solaris]
319 ## device: (global)
320 #  Sets the device name for Solaris output.
321 #device = /dev/audio
324 ## QSA backend stuff
326 [qsa]
329 ## JACK backend stuff
331 [jack]
333 ## spawn-server: (global)
334 #  Attempts to autospawn a JACK server whenever needed (initializing the
335 #  backend, opening devices, etc).
336 #spawn-server = false
338 ## buffer-size:
339 #  Sets the update buffer size, in samples, that the backend will keep buffered
340 #  to handle the server's real-time processing requests. This value must be a
341 #  power of 2, or else it will be rounded up to the next power of 2. If it is
342 #  less than JACK's buffer update size, it will be clamped. This option may
343 #  be useful in case the server's update size is too small and doesn't give the
344 #  mixer time to keep enough audio available for the processing requests.
345 #buffer-size = 0
348 ## MMDevApi backend stuff
350 [mmdevapi]
353 ## DirectSound backend stuff
355 [dsound]
358 ## Windows Multimedia backend stuff
360 [winmm]
363 ## PortAudio backend stuff
365 [port]
367 ## device: (global)
368 #  Sets the device index for output. Negative values will use the default as
369 #  given by PortAudio itself.
370 #device = -1
372 ## capture: (global)
373 #  Sets the device index for capture. Negative values will use the default as
374 #  given by PortAudio itself.
375 #capture = -1
378 ## Wave File Writer stuff
380 [wave]
382 ## file: (global)
383 #  Sets the filename of the wave file to write to. An empty name prevents the
384 #  backend from opening, even when explicitly requested.
385 #  THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
386 #file =
388 ## bformat: (global)
389 #  Creates AMB format files using first-order ambisonics instead of a standard
390 #  single- or multi-channel .wav file.
391 #bformat = false