alsoftrc.sample 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. # OpenAL config file.
  2. #
  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 "$$".
  10. #
  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.
  16. #
  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
  20. #
  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:
  25. ##
  26. ## General stuff
  27. ##
  28. [general]
  29. ## disable-cpu-exts: (global)
  30. # Disables use of specialized methods that use specific CPU intrinsics.
  31. # Certain methods may utilize CPU extensions for improved performance, and
  32. # this option is useful for preventing some or all of those methods from being
  33. # used. The available extensions are: sse, sse2, sse3, sse4.1, and neon.
  34. # Specifying 'all' disables use of all such specialized methods.
  35. #disable-cpu-exts =
  36. ## drivers: (global)
  37. # Sets the backend driver list order, comma-seperated. Unknown backends and
  38. # duplicated names are ignored. Unlisted backends won't be considered for use
  39. # unless the list is ended with a comma (e.g. 'oss,' will try OSS first before
  40. # other backends, while 'oss' will try OSS only). Backends prepended with -
  41. # won't be considered for use (e.g. '-oss,' will try all available backends
  42. # except OSS). An empty list means to try all backends.
  43. #drivers =
  44. ## channels:
  45. # Sets the output channel configuration. If left unspecified, one will try to
  46. # be detected from the system, and defaulting to stereo. The available values
  47. # are: mono, stereo, quad, surround51, surround51rear, surround61, surround71,
  48. # ambi1, ambi2, ambi3. Note that the ambi* configurations provide ambisonic
  49. # channels of the given order (using ACN ordering and SN3D normalization by
  50. # default), which need to be decoded to play correctly on speakers.
  51. #channels =
  52. ## sample-type:
  53. # Sets the output sample type. Currently, all mixing is done with 32-bit float
  54. # and converted to the output sample type as needed. Available values are:
  55. # int8 - signed 8-bit int
  56. # uint8 - unsigned 8-bit int
  57. # int16 - signed 16-bit int
  58. # uint16 - unsigned 16-bit int
  59. # int32 - signed 32-bit int
  60. # uint32 - unsigned 32-bit int
  61. # float32 - 32-bit float
  62. #sample-type = float32
  63. ## frequency:
  64. # Sets the output frequency. If left unspecified it will try to detect a
  65. # default from the system, otherwise it will default to 44100.
  66. #frequency =
  67. ## period_size:
  68. # Sets the update period size, in sample frames. This is the number of frames
  69. # needed for each mixing update. Acceptable values range between 64 and 8192.
  70. # If left unspecified it will default to 1/50th of the frequency (20ms, or 882
  71. # for 44100, 960 for 48000, etc).
  72. #period_size =
  73. ## periods:
  74. # Sets the number of update periods. Higher values create a larger mix ahead,
  75. # which helps protect against skips when the CPU is under load, but increases
  76. # the delay between a sound getting mixed and being heard. Acceptable values
  77. # range between 2 and 16.
  78. #periods = 3
  79. ## stereo-mode:
  80. # Specifies if stereo output is treated as being headphones or speakers. With
  81. # headphones, HRTF or crossfeed filters may be used for better audio quality.
  82. # Valid settings are auto, speakers, and headphones.
  83. #stereo-mode = auto
  84. ## stereo-encoding:
  85. # Specifies the encoding method for non-HRTF stereo output. 'panpot' (default)
  86. # uses standard amplitude panning (aka pair-wise, stereo pair, etc) between
  87. # -30 and +30 degrees, while 'uhj' creates stereo-compatible two-channel UHJ
  88. # output, which encodes some surround sound information into stereo output
  89. # that can be decoded with a surround sound receiver. If crossfeed filters are
  90. # used, UHJ is disabled.
  91. #stereo-encoding = panpot
  92. ## ambi-format:
  93. # Specifies the channel order and normalization for the "ambi*" set of channel
  94. # configurations. Valid settings are: fuma, ambix (or acn+sn3d), acn+n3d
  95. #ambi-format = ambix
  96. ## hrtf:
  97. # Controls HRTF processing. These filters provide better spatialization of
  98. # sounds while using headphones, but do require a bit more CPU power. While
  99. # HRTF is used, the cf_level option is ignored. Setting this to auto (default)
  100. # will allow HRTF to be used when headphones are detected or the app requests
  101. # it, while setting true or false will forcefully enable or disable HRTF
  102. # respectively.
  103. #hrtf = auto
  104. ## hrtf-mode:
  105. # Specifies the rendering mode for HRTF processing. Setting the mode to full
  106. # (default) applies a unique HRIR filter to each source given its relative
  107. # location, providing the clearest directional response at the cost of the
  108. # highest CPU usage. Setting the mode to ambi1, ambi2, or ambi3 will instead
  109. # mix to a first-, second-, or third-order ambisonic buffer respectively, then
  110. # decode that buffer with HRTF filters. Ambi1 has the lowest CPU usage,
  111. # replacing the per-source HRIR filter for a simple 4-channel panning mix, but
  112. # retains full 3D placement at the cost of a more diffuse response. Ambi2 and
  113. # ambi3 increasingly improve the directional clarity, at the cost of more CPU
  114. # usage (still less than "full", given some number of active sources).
  115. #hrtf-mode = full
  116. ## hrtf-size:
  117. # Specifies the impulse response size, in samples, for the HRTF filter. Larger
  118. # values increase the filter quality, while smaller values reduce processing
  119. # cost. A value of 0 (default) uses the full filter size in the dataset, and
  120. # the default dataset has a filter size of 32 samples at 44.1khz.
  121. #hrtf-size = 0
  122. ## default-hrtf:
  123. # Specifies the default HRTF to use. When multiple HRTFs are available, this
  124. # determines the preferred one to use if none are specifically requested. Note
  125. # that this is the enumerated HRTF name, not necessarily the filename.
  126. #default-hrtf =
  127. ## hrtf-paths:
  128. # Specifies a comma-separated list of paths containing HRTF data sets. The
  129. # format of the files are described in docs/hrtf.txt. The files within the
  130. # directories must have the .mhr file extension to be recognized. By default,
  131. # OS-dependent data paths will be used. They will also be used if the list
  132. # ends with a comma. On Windows this is:
  133. # $AppData\openal\hrtf
  134. # And on other systems, it's (in order):
  135. # $XDG_DATA_HOME/openal/hrtf (defaults to $HOME/.local/share/openal/hrtf)
  136. # $XDG_DATA_DIRS/openal/hrtf (defaults to /usr/local/share/openal/hrtf and
  137. # /usr/share/openal/hrtf)
  138. #hrtf-paths =
  139. ## cf_level:
  140. # Sets the crossfeed level for stereo output. Valid values are:
  141. # 0 - No crossfeed
  142. # 1 - Low crossfeed
  143. # 2 - Middle crossfeed
  144. # 3 - High crossfeed (virtual speakers are closer to itself)
  145. # 4 - Low easy crossfeed
  146. # 5 - Middle easy crossfeed
  147. # 6 - High easy crossfeed
  148. # Users of headphones may want to try various settings. Has no effect on non-
  149. # stereo modes.
  150. #cf_level = 0
  151. ## resampler: (global)
  152. # Selects the default resampler used when mixing sources. Valid values are:
  153. # point - nearest sample, no interpolation
  154. # linear - extrapolates samples using a linear slope between samples
  155. # cubic - extrapolates samples using a Catmull-Rom spline
  156. # bsinc12 - extrapolates samples using a band-limited Sinc filter (varying
  157. # between 12 and 24 points, with anti-aliasing)
  158. # fast_bsinc12 - same as bsinc12, except without interpolation between down-
  159. # sampling scales
  160. # bsinc24 - extrapolates samples using a band-limited Sinc filter (varying
  161. # between 24 and 48 points, with anti-aliasing)
  162. # fast_bsinc24 - same as bsinc24, except without interpolation between down-
  163. # sampling scales
  164. #resampler = linear
  165. ## rt-prio: (global)
  166. # Sets real-time priority for the mixing thread. Not all drivers may use this
  167. # (eg. PortAudio) as they already control the priority of the mixing thread.
  168. # 0 and negative values will disable it. Note that this may constitute a
  169. # security risk since a real-time priority thread can indefinitely block
  170. # normal-priority threads if it fails to wait. Disable this if it turns out to
  171. # be a problem.
  172. #rt-prio = 1
  173. ## sources:
  174. # Sets the maximum number of allocatable sources. Lower values may help for
  175. # systems with apps that try to play more sounds than the CPU can handle.
  176. #sources = 256
  177. ## slots:
  178. # Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
  179. # can use a non-negligible amount of CPU time if an effect is set on it even
  180. # if no sources are feeding it, so this may help when apps use more than the
  181. # system can handle.
  182. #slots = 64
  183. ## sends:
  184. # Limits the number of auxiliary sends allowed per source. Setting this higher
  185. # than the default has no effect.
  186. #sends = 6
  187. ## front-stablizer:
  188. # Applies filters to "stablize" front sound imaging. A psychoacoustic method
  189. # is used to generate a front-center channel signal from the front-left and
  190. # front-right channels, improving the front response by reducing the combing
  191. # artifacts and phase errors. Consequently, it will only work with channel
  192. # configurations that include front-left, front-right, and front-center.
  193. #front-stablizer = false
  194. ## output-limiter:
  195. # Applies a gain limiter on the final mixed output. This reduces the volume
  196. # when the output samples would otherwise clamp, avoiding excessive clipping
  197. # noise.
  198. #output-limiter = true
  199. ## dither:
  200. # Applies dithering on the final mix, for 8- and 16-bit output by default.
  201. # This replaces the distortion created by nearest-value quantization with low-
  202. # level whitenoise.
  203. #dither = true
  204. ## dither-depth:
  205. # Quantization bit-depth for dithered output. A value of 0 (or less) will
  206. # match the output sample depth. For int32, uint32, and float32 output, 0 will
  207. # disable dithering because they're at or beyond the rendered precision. The
  208. # maximum dither depth is 24.
  209. #dither-depth = 0
  210. ## volume-adjust:
  211. # A global volume adjustment for source output, expressed in decibels. The
  212. # value is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will
  213. # be a scale of 4x, etc. Similarly, -6 will be x1/2, and -12 is about x1/4. A
  214. # value of 0 means no change.
  215. #volume-adjust = 0
  216. ## excludefx: (global)
  217. # Sets which effects to exclude, preventing apps from using them. This can
  218. # help for apps that try to use effects which are too CPU intensive for the
  219. # system to handle. Available effects are: eaxreverb,reverb,autowah,chorus,
  220. # compressor,distortion,echo,equalizer,flanger,modulator,dedicated,pshifter,
  221. # fshifter,vmorpher.
  222. #excludefx =
  223. ## default-reverb: (global)
  224. # A reverb preset that applies by default to all sources on send 0
  225. # (applications that set their own slots on send 0 will override this).
  226. # Available presets are: None, Generic, PaddedCell, Room, Bathroom,
  227. # Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
  228. # CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
  229. # Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
  230. #default-reverb =
  231. ## trap-alc-error: (global)
  232. # Generates a SIGTRAP signal when an ALC device error is generated, on systems
  233. # that support it. This helps when debugging, while trying to find the cause
  234. # of a device error. On Windows, a breakpoint exception is generated.
  235. #trap-alc-error = false
  236. ## trap-al-error: (global)
  237. # Generates a SIGTRAP signal when an AL context error is generated, on systems
  238. # that support it. This helps when debugging, while trying to find the cause
  239. # of a context error. On Windows, a breakpoint exception is generated.
  240. #trap-al-error = false
  241. ##
  242. ## Ambisonic decoder stuff
  243. ##
  244. [decoder]
  245. ## hq-mode:
  246. # Enables a high-quality ambisonic decoder. This mode is capable of frequency-
  247. # dependent processing, creating a better reproduction of 3D sound rendering
  248. # over surround sound speakers. Enabling this also requires specifying decoder
  249. # configuration files for the appropriate speaker configuration you intend to
  250. # use (see the quad, surround51, etc options below). Currently, up to third-
  251. # order decoding is supported.
  252. #hq-mode = true
  253. ## distance-comp:
  254. # Enables compensation for the speakers' relative distances to the listener.
  255. # This applies the necessary delays and attenuation to make the speakers
  256. # behave as though they are all equidistant, which is important for proper
  257. # playback of 3D sound rendering. Requires the proper distances to be
  258. # specified in the decoder configuration file.
  259. #distance-comp = true
  260. ## nfc:
  261. # Enables near-field control filters. This simulates and compensates for low-
  262. # frequency effects caused by the curvature of nearby sound-waves, which
  263. # creates a more realistic perception of sound distance. Note that the effect
  264. # may be stronger or weaker than intended if the application doesn't use or
  265. # specify an appropriate unit scale, or if incorrect speaker distances are set
  266. # in the decoder configuration file.
  267. #nfc = false
  268. ## nfc-ref-delay
  269. # Specifies the reference delay value for ambisonic output when NFC filters
  270. # are enabled. If channels is set to one of the ambi* formats, this option
  271. # enables NFC-HOA output with the specified Reference Delay parameter. The
  272. # specified value can then be shared with an appropriate NFC-HOA decoder to
  273. # reproduce correct near-field effects. Keep in mind that despite being
  274. # designed for higher-order ambisonics, this also applies to first-order
  275. # output. When left unset, normal output is created with no near-field
  276. # simulation. Requires the nfc option to also be enabled.
  277. #nfc-ref-delay =
  278. ## quad:
  279. # Decoder configuration file for Quadraphonic channel output. See
  280. # docs/ambdec.txt for a description of the file format.
  281. #quad =
  282. ## surround51:
  283. # Decoder configuration file for 5.1 Surround (Side and Rear) channel output.
  284. # See docs/ambdec.txt for a description of the file format.
  285. #surround51 =
  286. ## surround61:
  287. # Decoder configuration file for 6.1 Surround channel output. See
  288. # docs/ambdec.txt for a description of the file format.
  289. #surround61 =
  290. ## surround71:
  291. # Decoder configuration file for 7.1 Surround channel output. See
  292. # docs/ambdec.txt for a description of the file format. Note: This can be used
  293. # to enable 3D7.1 with the appropriate configuration and speaker placement,
  294. # see docs/3D7.1.txt.
  295. #surround71 =
  296. ##
  297. ## Reverb effect stuff (includes EAX reverb)
  298. ##
  299. [reverb]
  300. ## boost: (global)
  301. # A global amplification for reverb output, expressed in decibels. The value
  302. # is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
  303. # scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
  304. # value of 0 means no change.
  305. #boost = 0
  306. ##
  307. ## PulseAudio backend stuff
  308. ##
  309. [pulse]
  310. ## spawn-server: (global)
  311. # Attempts to autospawn a PulseAudio server whenever needed (initializing the
  312. # backend, enumerating devices, etc). Setting autospawn to false in Pulse's
  313. # client.conf will still prevent autospawning even if this is set to true.
  314. #spawn-server = true
  315. ## allow-moves: (global)
  316. # Allows PulseAudio to move active streams to different devices. Note that the
  317. # device specifier (seen by applications) will not be updated when this
  318. # occurs, and neither will the AL device configuration (sample rate, format,
  319. # etc).
  320. #allow-moves = true
  321. ## fix-rate:
  322. # Specifies whether to match the playback stream's sample rate to the device's
  323. # sample rate. Enabling this forces OpenAL Soft to mix sources and effects
  324. # directly to the actual output rate, avoiding a second resample pass by the
  325. # PulseAudio server.
  326. #fix-rate = false
  327. ## adjust-latency:
  328. # Attempts to adjust the overall latency of device playback. Note that this
  329. # may have adverse effects on the resulting internal buffer sizes and mixing
  330. # updates, leading to performance problems and drop-outs. However, if the
  331. # PulseAudio server is creating a lot of latency, enabling this may help make
  332. # it more manageable.
  333. #adjust-latency = false
  334. ##
  335. ## ALSA backend stuff
  336. ##
  337. [alsa]
  338. ## device: (global)
  339. # Sets the device name for the default playback device.
  340. #device = default
  341. ## device-prefix: (global)
  342. # Sets the prefix used by the discovered (non-default) playback devices. This
  343. # will be appended with "CARD=c,DEV=d", where c is the card id and d is the
  344. # device index for the requested device name.
  345. #device-prefix = plughw:
  346. ## device-prefix-*: (global)
  347. # Card- and device-specific prefixes may be used to override the device-prefix
  348. # option. The option may specify the card id (eg, device-prefix-NVidia), or
  349. # the card id and device index (eg, device-prefix-NVidia-0). The card id is
  350. # case-sensitive.
  351. #device-prefix- =
  352. ## custom-devices: (global)
  353. # Specifies a list of enumerated playback devices and the ALSA devices they
  354. # refer to. The list pattern is "Display Name=ALSA device;...". The display
  355. # names will be returned for device enumeration, and the ALSA device is the
  356. # device name to open for each enumerated device.
  357. #custom-devices =
  358. ## capture: (global)
  359. # Sets the device name for the default capture device.
  360. #capture = default
  361. ## capture-prefix: (global)
  362. # Sets the prefix used by the discovered (non-default) capture devices. This
  363. # will be appended with "CARD=c,DEV=d", where c is the card id and d is the
  364. # device number for the requested device name.
  365. #capture-prefix = plughw:
  366. ## capture-prefix-*: (global)
  367. # Card- and device-specific prefixes may be used to override the
  368. # capture-prefix option. The option may specify the card id (eg,
  369. # capture-prefix-NVidia), or the card id and device index (eg,
  370. # capture-prefix-NVidia-0). The card id is case-sensitive.
  371. #capture-prefix- =
  372. ## custom-captures: (global)
  373. # Specifies a list of enumerated capture devices and the ALSA devices they
  374. # refer to. The list pattern is "Display Name=ALSA device;...". The display
  375. # names will be returned for device enumeration, and the ALSA device is the
  376. # device name to open for each enumerated device.
  377. #custom-captures =
  378. ## mmap:
  379. # Sets whether to try using mmap mode (helps reduce latencies and CPU
  380. # consumption). If mmap isn't available, it will automatically fall back to
  381. # non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
  382. # and anything else will force mmap off.
  383. #mmap = true
  384. ## allow-resampler:
  385. # Specifies whether to allow ALSA's built-in resampler. Enabling this will
  386. # allow the playback device to be set to a different sample rate than the
  387. # actual output, causing ALSA to apply its own resampling pass after OpenAL
  388. # Soft resamples and mixes the sources and effects for output.
  389. #allow-resampler = false
  390. ##
  391. ## OSS backend stuff
  392. ##
  393. [oss]
  394. ## device: (global)
  395. # Sets the device name for OSS output.
  396. #device = /dev/dsp
  397. ## capture: (global)
  398. # Sets the device name for OSS capture.
  399. #capture = /dev/dsp
  400. ##
  401. ## Solaris backend stuff
  402. ##
  403. [solaris]
  404. ## device: (global)
  405. # Sets the device name for Solaris output.
  406. #device = /dev/audio
  407. ##
  408. ## QSA backend stuff
  409. ##
  410. [qsa]
  411. ##
  412. ## JACK backend stuff
  413. ##
  414. [jack]
  415. ## spawn-server: (global)
  416. # Attempts to autospawn a JACK server whenever needed (initializing the
  417. # backend, opening devices, etc).
  418. #spawn-server = false
  419. ## custom-devices: (global)
  420. # Specifies a list of enumerated devices and the ports they connect to. The
  421. # list pattern is "Display Name=ports regex;Display Name=ports regex;...". The
  422. # display names will be returned for device enumeration, and the ports regex
  423. # is the regular expression to identify the target ports on the server (as
  424. # given by the jack_get_ports function) for each enumerated device.
  425. #custom-devices =
  426. ## connect-ports:
  427. # Attempts to automatically connect the client ports to physical server ports.
  428. # Client ports that fail to connect will leave the remaining channels
  429. # unconnected and silent (the device format won't change to accommodate).
  430. #connect-ports = true
  431. ## buffer-size:
  432. # Sets the update buffer size, in samples, that the backend will keep buffered
  433. # to handle the server's real-time processing requests. This value must be a
  434. # power of 2, or else it will be rounded up to the next power of 2. If it is
  435. # less than JACK's buffer update size, it will be clamped. This option may
  436. # be useful in case the server's update size is too small and doesn't give the
  437. # mixer time to keep enough audio available for the processing requests.
  438. #buffer-size = 0
  439. ##
  440. ## WASAPI backend stuff
  441. ##
  442. [wasapi]
  443. ##
  444. ## DirectSound backend stuff
  445. ##
  446. [dsound]
  447. ##
  448. ## Windows Multimedia backend stuff
  449. ##
  450. [winmm]
  451. ##
  452. ## PortAudio backend stuff
  453. ##
  454. [port]
  455. ## device: (global)
  456. # Sets the device index for output. Negative values will use the default as
  457. # given by PortAudio itself.
  458. #device = -1
  459. ## capture: (global)
  460. # Sets the device index for capture. Negative values will use the default as
  461. # given by PortAudio itself.
  462. #capture = -1
  463. ##
  464. ## Wave File Writer stuff
  465. ##
  466. [wave]
  467. ## file: (global)
  468. # Sets the filename of the wave file to write to. An empty name prevents the
  469. # backend from opening, even when explicitly requested.
  470. # THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
  471. #file =
  472. ## bformat: (global)
  473. # Creates AMB format files using first-order ambisonics instead of a standard
  474. # single- or multi-channel .wav file.
  475. #bformat = false