Use the correct device name when opening a device by name
[openal-soft.git] / alsoftrc.sample
blob0c57e220210d0b4dc5f95649f1b838c8d2f86373
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 [Name of Device/alsa] 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-insenstive. The supplied values are only
22 # hints 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, sse4.1, and neon. Specifying
36 #  '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 in use, the cf_level option is ignored. Setting this to true or
94 #  false will forcefully enable or disable HRTF, otherwise HRTF will be enabled
95 #  when using headphones.
96 #hrtf =
98 ## hrtf_tables: (global)
99 #  Specifies a comma-separated list of files containing HRTF data sets. The
100 #  format of the files are described in hrtf.txt. The filenames may contain
101 #  these markers, which will be replaced as needed:
102 #  %r - Device sampling rate
103 #  %% - Percent sign (%)
104 #  The listed files are relative to system-dependant data directories. On
105 #  Windows this is:
106 #  $AppData\openal\hrtf
107 #  And on other systems, it's (in order):
108 #  $XDG_DATA_HOME/openal/hrtf  (defaults to $HOME/.local/share/openal/hrtf)
109 #  $XDG_DATA_DIRS/openal/hrtf  (defaults to /usr/local/share/openal/hrtf and
110 #                               /usr/share/openal/hrtf)
111 #  An absolute path may also be specified, if the given file is elsewhere.
112 #hrtf_tables = default-%r.mhr
114 ## cf_level:
115 #  Sets the crossfeed level for stereo output. Valid values are:
116 #  0 - No crossfeed
117 #  1 - Low crossfeed
118 #  2 - Middle crossfeed
119 #  3 - High crossfeed (virtual speakers are closer to itself)
120 #  4 - Low easy crossfeed
121 #  5 - Middle easy crossfeed
122 #  6 - High easy crossfeed
123 #  Users of headphones may want to try various settings. Has no effect on non-
124 #  stereo modes.
125 #cf_level = 0
127 ## resampler: (global)
128 #  Selects the resampler used when mixing sources. Valid values are:
129 #  point - nearest sample, no interpolation
130 #  linear - extrapolates samples using a linear slope between samples
131 #  cubic - extrapolates samples using a Catmull-Rom spline
132 #  Specifying other values will result in using the default (linear).
133 #resampler = linear
135 ## rt-prio: (global)
136 #  Sets real-time priority for the mixing thread. Not all drivers may use this
137 #  (eg. PortAudio) as they already control the priority of the mixing thread.
138 #  0 and negative values will disable it. Note that this may constitute a
139 #  security risk since a real-time priority thread can indefinitely block
140 #  normal-priority threads if it fails to wait. As such, the default is
141 #  disabled.
142 #rt-prio = 0
144 ## sources:
145 #  Sets the maximum number of allocatable sources. Lower values may help for
146 #  systems with apps that try to play more sounds than the CPU can handle.
147 #sources = 256
149 ## slots:
150 #  Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
151 #  can use a non-negligible amount of CPU time if an effect is set on it even
152 #  if no sources are feeding it, so this may help when apps use more than the
153 #  system can handle.
154 #slots = 4
156 ## sends:
157 #  Sets the number of auxiliary sends per source. When not specified (default),
158 #  it allows the app to request how many it wants. The maximum value currently
159 #  possible is 4.
160 #sends =
162 ## excludefx: (global)
163 #  Sets which effects to exclude, preventing apps from using them. This can
164 #  help for apps that try to use effects which are too CPU intensive for the
165 #  system to handle. Available effects are: eaxreverb,reverb,autowah,chorus,
166 #  compressor,distortion,echo,equalizer,flanger,modulator,dedicated
167 #excludefx =
169 ## default-reverb: (global)
170 #  A reverb preset that applies by default to all sources on send 0
171 #  (applications that set their own slots on send 0 will override this).
172 #  Available presets are: None, Generic, PaddedCell, Room, Bathroom,
173 #  Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
174 #  CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
175 #  Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
176 #default-reverb =
178 ## trap-alc-error: (global)
179 #  Generates a SIGTRAP signal when an ALC device error is generated, on systems
180 #  that support it. This helps when debugging, while trying to find the cause
181 #  of a device error. On Windows, a breakpoint exception is generated.
182 #trap-alc-error = false
184 ## trap-al-error: (global)
185 #  Generates a SIGTRAP signal when an AL context error is generated, on systems
186 #  that support it. This helps when debugging, while trying to find the cause
187 #  of a context error. On Windows, a breakpoint exception is generated.
188 #trap-al-error = false
191 ## MIDI stuff (EXPERIMENTAL)
193 [midi]
195 ## soundfont: (global)
196 #  A default soundfont (sf2 format). Used when an app requests the system
197 #  default. The listed file is relative to system-dependant data directories.
198 #  On Windows this is:
199 #  $AppData\openal\soundfonts
200 #  And on other systems, it's (in order):
201 #  $XDG_DATA_HOME/openal/soundfonts
202 #  $XDG_DATA_DIRS/openal/soundfonts
203 #  An absolute path may also be specified, if the given file is elsewhere.
204 #soundfont =
206 ## volume: (global)
207 #  Additional attenuation applied to MIDI output, expressed in decibels. This
208 #  is used to help keep the mix from clipping, and so must be 0 or less. The
209 #  value is logarithmic, so -6 will be about half amplitude, and -12 about
210 #  1/4th. The default is roughly -13.9794 (0.2, or 1/5th).
211 #volume =
214 ## Reverb effect stuff (includes EAX reverb)
216 [reverb]
218 ## boost: (global)
219 #  A global amplification for reverb output, expressed in decibels. The value
220 #  is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
221 #  scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
222 #  value of 0 means no change.
223 #boost = 0
225 ## emulate-eax: (global)
226 #  Allows the standard reverb effect to be used in place of EAX reverb. EAX
227 #  reverb processing is a bit more CPU intensive than standard, so this option
228 #  allows a simpler effect to be used at the loss of some quality.
229 #emulate-eax = false
232 ## PulseAudio backend stuff
234 [pulse]
236 ## spawn-server: (global)
237 #  Attempts to autospawn a PulseAudio server whenever needed (initializing the
238 #  backend, enumerating devices, etc). Setting autospawn to false in Pulse's
239 #  client.conf will still prevent autospawning even if this is set to true.
240 #spawn-server = true
242 ## allow-moves: (global)
243 #  Allows PulseAudio to move active streams to different devices. Note that the
244 #  device specifier (seen by applications) will not be updated when this
245 #  occurs, and neither will the AL device configuration (sample rate, format,
246 #  etc).
247 #allow-moves = false
250 ## ALSA backend stuff
252 [alsa]
254 ## device: (global)
255 #  Sets the device name for the default playback device.
256 #device = default
258 ## device-prefix: (global)
259 #  Sets the prefix used by the discovered (non-default) playback devices. This
260 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
261 #  device index for the requested device name.
262 #device-prefix = plughw:
264 ## device-prefix-*: (global)
265 #  Card- and device-specific prefixes may be used to override the device-prefix
266 #  option. The option may specify the card id (eg, device-prefix-NVidia), or
267 #  the card id and device index (eg, device-prefix-NVidia-0). The card id is
268 #  case-sensitive.
269 #device-prefix- =
271 ## capture: (global)
272 #  Sets the device name for the default capture device.
273 #capture = default
275 ## capture-prefix: (global)
276 #  Sets the prefix used by the discovered (non-default) capture devices. This
277 #  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
278 #  device number for the requested device name.
279 #capture-prefix = plughw:
281 ## capture-prefix-*: (global)
282 #  Card- and device-specific prefixes may be used to override the
283 #  capture-prefix option. The option may specify the card id (eg,
284 #  capture-prefix-NVidia), or the card id and device index (eg,
285 #  capture-prefix-NVidia-0). The card id is case-sensitive.
286 #capture-prefix- =
288 ## mmap:
289 #  Sets whether to try using mmap mode (helps reduce latencies and CPU
290 #  consumption). If mmap isn't available, it will automatically fall back to
291 #  non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
292 #  and anything else will force mmap off.
293 #mmap = true
296 ## OSS backend stuff
298 [oss]
300 ## device: (global)
301 #  Sets the device name for OSS output.
302 #device = /dev/dsp
304 ## capture: (global)
305 #  Sets the device name for OSS capture.
306 #capture = /dev/dsp
309 ## Solaris backend stuff
311 [solaris]
313 ## device: (global)
314 #  Sets the device name for Solaris output.
315 #device = /dev/audio
318 ## QSA backend stuff
320 [qsa]
323 ## JACK backend stuff
325 [jack]
327 ## spawn-server: (global)
328 #  Attempts to autospawn a JACK server whenever needed (initializing the
329 #  backend, opening devices, etc).
330 #spawn-server = false
332 ## buffer-size:
333 #  Sets the update buffer size, in samples, that the backend will keep buffered
334 #  to handle the server's real-time processing requests. This value must be a
335 #  power of 2, or else it will be rounded up to the next power of 2. If it is
336 #  less than JACK's buffer update size, it will be clamped. This option may
337 #  be useful in case the server's update size is too small and doesn't give the
338 #  mixer time to keep enough audio available for the processing requests.
339 #buffer-size = 0
342 ## MMDevApi backend stuff
344 [mmdevapi]
347 ## DirectSound backend stuff
349 [dsound]
352 ## Windows Multimedia backend stuff
354 [winmm]
357 ## PortAudio backend stuff
359 [port]
361 ## device: (global)
362 #  Sets the device index for output. Negative values will use the default as
363 #  given by PortAudio itself.
364 #device = -1
366 ## capture: (global)
367 #  Sets the device index for capture. Negative values will use the default as
368 #  given by PortAudio itself.
369 #capture = -1
372 ## Wave File Writer stuff
374 [wave]
376 ## file: (global)
377 #  Sets the filename of the wave file to write to. An empty name prevents the
378 #  backend from opening, even when explicitly requested.
379 #  THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
380 #file =
382 ## bformat: (global)
383 #  Creates AMB format files using first-order ambisonics instead of a standard
384 #  single- or multi-channel .wav file.
385 #bformat = false