alsoftrc.sample 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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 frames. This is the number of frames needed
  69. # for each mixing update. Acceptable values range between 64 and 8192.
  70. #period_size = 1024
  71. ## periods:
  72. # Sets the number of update periods. Higher values create a larger mix ahead,
  73. # which helps protect against skips when the CPU is under load, but increases
  74. # the delay between a sound getting mixed and being heard. Acceptable values
  75. # range between 2 and 16.
  76. #periods = 3
  77. ## stereo-mode:
  78. # Specifies if stereo output is treated as being headphones or speakers. With
  79. # headphones, HRTF or crossfeed filters may be used for better audio quality.
  80. # Valid settings are auto, speakers, and headphones.
  81. #stereo-mode = auto
  82. ## stereo-encoding:
  83. # Specifies the encoding method for non-HRTF stereo output. 'panpot' (default)
  84. # uses standard amplitude panning (aka pair-wise, stereo pair, etc) between
  85. # -30 and +30 degrees, while 'uhj' creates stereo-compatible two-channel UHJ
  86. # output, which encodes some surround sound information into stereo output
  87. # that can be decoded with a surround sound receiver. If crossfeed filters are
  88. # used, UHJ is disabled.
  89. #stereo-encoding = panpot
  90. ## ambi-format:
  91. # Specifies the channel order and normalization for the "ambi*" set of channel
  92. # configurations. Valid settings are: fuma, acn+sn3d, acn+n3d
  93. #ambi-format = acn+sn3d
  94. ## hrtf:
  95. # Controls HRTF processing. These filters provide better spatialization of
  96. # sounds while using headphones, but do require a bit more CPU power. The
  97. # default filters will only work with 44100hz or 48000hz stereo output. While
  98. # HRTF is used, the cf_level option is ignored. Setting this to auto (default)
  99. # will allow HRTF to be used when headphones are detected or the app requests
  100. # it, while setting true or false will forcefully enable or disable HRTF
  101. # respectively.
  102. #hrtf = auto
  103. ## default-hrtf:
  104. # Specifies the default HRTF to use. When multiple HRTFs are available, this
  105. # determines the preferred one to use if none are specifically requested. Note
  106. # that this is the enumerated HRTF name, not necessarily the filename.
  107. #default-hrtf =
  108. ## hrtf-paths:
  109. # Specifies a comma-separated list of paths containing HRTF data sets. The
  110. # format of the files are described in docs/hrtf.txt. The files within the
  111. # directories must have the .mhr file extension to be recognized. By default,
  112. # OS-dependent data paths will be used. They will also be used if the list
  113. # ends with a comma. On 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. #hrtf-paths =
  120. ## cf_level:
  121. # Sets the crossfeed level for stereo output. Valid values are:
  122. # 0 - No crossfeed
  123. # 1 - Low crossfeed
  124. # 2 - Middle crossfeed
  125. # 3 - High crossfeed (virtual speakers are closer to itself)
  126. # 4 - Low easy crossfeed
  127. # 5 - Middle easy crossfeed
  128. # 6 - High easy crossfeed
  129. # Users of headphones may want to try various settings. Has no effect on non-
  130. # stereo modes.
  131. #cf_level = 0
  132. ## resampler: (global)
  133. # Selects the resampler used when mixing sources. Valid values are:
  134. # point - nearest sample, no interpolation
  135. # linear - extrapolates samples using a linear slope between samples
  136. # sinc4 - extrapolates samples using a 4-point Sinc filter
  137. # bsinc - extrapolates samples using a band-limited Sinc filter (varying
  138. # between 12 and 24 points, with anti-aliasing)
  139. # Specifying other values will result in using the default (linear).
  140. #resampler = linear
  141. ## rt-prio: (global)
  142. # Sets real-time priority for the mixing thread. Not all drivers may use this
  143. # (eg. PortAudio) as they already control the priority of the mixing thread.
  144. # 0 and negative values will disable it. Note that this may constitute a
  145. # security risk since a real-time priority thread can indefinitely block
  146. # normal-priority threads if it fails to wait. As such, the default is
  147. # disabled.
  148. #rt-prio = 0
  149. ## sources:
  150. # Sets the maximum number of allocatable sources. Lower values may help for
  151. # systems with apps that try to play more sounds than the CPU can handle.
  152. #sources = 256
  153. ## slots:
  154. # Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
  155. # can use a non-negligible amount of CPU time if an effect is set on it even
  156. # if no sources are feeding it, so this may help when apps use more than the
  157. # system can handle.
  158. #slots = 64
  159. ## sends:
  160. # Limits the number of auxiliary sends allowed per source. Setting this higher
  161. # than the default has no effect.
  162. #sends = 16
  163. ## output-limiter:
  164. # Applies a gain limiter on the final mixed output. This reduces the volume
  165. # when the output samples would otherwise clamp, avoiding excessive clipping
  166. # noise.
  167. #output-limiter = true
  168. ## dither:
  169. # Applies dithering on the final mix, for 8- and 16-bit output by default.
  170. # This replaces the distortion created by nearest-value quantization with low-
  171. # level whitenoise.
  172. #dither = true
  173. ## dither-depth:
  174. # Quantization bit-depth for dithered output. A value of 0 (or less) will
  175. # match the output sample depth. For int32, uint32, and float32 output, 0 will
  176. # disable dithering because they're at or beyond the rendered precision. The
  177. # maximum dither depth is 24.
  178. #dither-depth = 0
  179. ## volume-adjust:
  180. # A global volume adjustment for source output, expressed in decibels. The
  181. # value is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will
  182. # be a scale of 4x, etc. Similarly, -6 will be x1/2, and -12 is about x1/4. A
  183. # value of 0 means no change.
  184. #volume-adjust = 0
  185. ## excludefx: (global)
  186. # Sets which effects to exclude, preventing apps from using them. This can
  187. # help for apps that try to use effects which are too CPU intensive for the
  188. # system to handle. Available effects are: eaxreverb,reverb,chorus,compressor,
  189. # distortion,echo,equalizer,flanger,modulator,dedicated
  190. #excludefx =
  191. ## default-reverb: (global)
  192. # A reverb preset that applies by default to all sources on send 0
  193. # (applications that set their own slots on send 0 will override this).
  194. # Available presets are: None, Generic, PaddedCell, Room, Bathroom,
  195. # Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
  196. # CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
  197. # Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
  198. #default-reverb =
  199. ## trap-alc-error: (global)
  200. # Generates a SIGTRAP signal when an ALC device error is generated, on systems
  201. # that support it. This helps when debugging, while trying to find the cause
  202. # of a device error. On Windows, a breakpoint exception is generated.
  203. #trap-alc-error = false
  204. ## trap-al-error: (global)
  205. # Generates a SIGTRAP signal when an AL context error is generated, on systems
  206. # that support it. This helps when debugging, while trying to find the cause
  207. # of a context error. On Windows, a breakpoint exception is generated.
  208. #trap-al-error = false
  209. ##
  210. ## Ambisonic decoder stuff
  211. ##
  212. [decoder]
  213. ## hq-mode:
  214. # Enables a high-quality ambisonic decoder. This mode is capable of frequency-
  215. # dependent processing, creating a better reproduction of 3D sound rendering
  216. # over surround sound speakers. Enabling this also requires specifying decoder
  217. # configuration files for the appropriate speaker configuration you intend to
  218. # use (see the quad, surround51, etc options below). Currently, up to third-
  219. # order decoding is supported.
  220. hq-mode = false
  221. ## distance-comp:
  222. # Enables compensation for the speakers' relative distances to the listener.
  223. # This applies the necessary delays and attenuation to make the speakers
  224. # behave as though they are all equidistant, which is important for proper
  225. # playback of 3D sound rendering. Requires the proper distances to be
  226. # specified in the decoder configuration file.
  227. distance-comp = true
  228. ## nfc:
  229. # Enables near-field control filters. This simulates and compensates for low-
  230. # frequency effects caused by the curvature of nearby sound-waves, which
  231. # creates a more realistic perception of sound distance. Note that the effect
  232. # may be stronger or weaker than intended if the application doesn't use or
  233. # specify an appropriate unit scale, or if incorrect speaker distances are set
  234. # in the decoder configuration file. Requires hq-mode to be enabled.
  235. nfc = true
  236. ## nfc-ref-delay
  237. # Specifies the reference delay value for ambisonic output. When channels is
  238. # set to one of the ambi* formats, this option enables NFC-HOA output with the
  239. # specified Reference Delay parameter. The specified value can then be shared
  240. # with an appropriate NFC-HOA decoder to reproduce correct near-field effects.
  241. # Keep in mind that despite being designed for higher-order ambisonics, this
  242. # applies to first-order output all the same. When left unset, normal output
  243. # is created with no near-field simulation.
  244. nfc-ref-delay =
  245. ## quad:
  246. # Decoder configuration file for Quadrophonic channel output. See
  247. # docs/ambdec.txt for a description of the file format.
  248. quad =
  249. ## surround51:
  250. # Decoder configuration file for 5.1 Surround (Side and Rear) channel output.
  251. # See docs/ambdec.txt for a description of the file format.
  252. surround51 =
  253. ## surround61:
  254. # Decoder configuration file for 6.1 Surround channel output. See
  255. # docs/ambdec.txt for a description of the file format.
  256. surround61 =
  257. ## surround71:
  258. # Decoder configuration file for 7.1 Surround channel output. See
  259. # docs/ambdec.txt for a description of the file format. Note: This can be used
  260. # to enable 3D7.1 with the appropriate configuration and speaker placement,
  261. # see docs/3D7.1.txt.
  262. surround71 =
  263. ##
  264. ## Reverb effect stuff (includes EAX reverb)
  265. ##
  266. [reverb]
  267. ## boost: (global)
  268. # A global amplification for reverb output, expressed in decibels. The value
  269. # is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
  270. # scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
  271. # value of 0 means no change.
  272. #boost = 0
  273. ## emulate-eax: (global)
  274. # Allows the standard reverb effect to be used in place of EAX reverb. EAX
  275. # reverb processing is a bit more CPU intensive than standard, so this option
  276. # allows a simpler effect to be used at the loss of some quality.
  277. #emulate-eax = false
  278. ##
  279. ## PulseAudio backend stuff
  280. ##
  281. [pulse]
  282. ## spawn-server: (global)
  283. # Attempts to autospawn a PulseAudio server whenever needed (initializing the
  284. # backend, enumerating devices, etc). Setting autospawn to false in Pulse's
  285. # client.conf will still prevent autospawning even if this is set to true.
  286. #spawn-server = true
  287. ## allow-moves: (global)
  288. # Allows PulseAudio to move active streams to different devices. Note that the
  289. # device specifier (seen by applications) will not be updated when this
  290. # occurs, and neither will the AL device configuration (sample rate, format,
  291. # etc).
  292. #allow-moves = false
  293. ## fix-rate:
  294. # Specifies whether to match the playback stream's sample rate to the device's
  295. # sample rate. Enabling this forces OpenAL Soft to mix sources and effects
  296. # directly to the actual output rate, avoiding a second resample pass by the
  297. # PulseAudio server.
  298. #fix-rate = false
  299. ##
  300. ## ALSA backend stuff
  301. ##
  302. [alsa]
  303. ## device: (global)
  304. # Sets the device name for the default playback device.
  305. #device = default
  306. ## device-prefix: (global)
  307. # Sets the prefix used by the discovered (non-default) playback devices. This
  308. # will be appended with "CARD=c,DEV=d", where c is the card id and d is the
  309. # device index for the requested device name.
  310. #device-prefix = plughw:
  311. ## device-prefix-*: (global)
  312. # Card- and device-specific prefixes may be used to override the device-prefix
  313. # option. The option may specify the card id (eg, device-prefix-NVidia), or
  314. # the card id and device index (eg, device-prefix-NVidia-0). The card id is
  315. # case-sensitive.
  316. #device-prefix- =
  317. ## capture: (global)
  318. # Sets the device name for the default capture device.
  319. #capture = default
  320. ## capture-prefix: (global)
  321. # Sets the prefix used by the discovered (non-default) capture devices. This
  322. # will be appended with "CARD=c,DEV=d", where c is the card id and d is the
  323. # device number for the requested device name.
  324. #capture-prefix = plughw:
  325. ## capture-prefix-*: (global)
  326. # Card- and device-specific prefixes may be used to override the
  327. # capture-prefix option. The option may specify the card id (eg,
  328. # capture-prefix-NVidia), or the card id and device index (eg,
  329. # capture-prefix-NVidia-0). The card id is case-sensitive.
  330. #capture-prefix- =
  331. ## mmap:
  332. # Sets whether to try using mmap mode (helps reduce latencies and CPU
  333. # consumption). If mmap isn't available, it will automatically fall back to
  334. # non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
  335. # and anything else will force mmap off.
  336. #mmap = true
  337. ## allow-resampler:
  338. # Specifies whether to allow ALSA's built-in resampler. Enabling this will
  339. # allow the playback device to be set to a different sample rate than the
  340. # actual output, causing ALSA to apply its own resampling pass after OpenAL
  341. # Soft resamples and mixes the sources and effects for output.
  342. #allow-resampler = false
  343. ##
  344. ## OSS backend stuff
  345. ##
  346. [oss]
  347. ## device: (global)
  348. # Sets the device name for OSS output.
  349. #device = /dev/dsp
  350. ## capture: (global)
  351. # Sets the device name for OSS capture.
  352. #capture = /dev/dsp
  353. ##
  354. ## Solaris backend stuff
  355. ##
  356. [solaris]
  357. ## device: (global)
  358. # Sets the device name for Solaris output.
  359. #device = /dev/audio
  360. ##
  361. ## QSA backend stuff
  362. ##
  363. [qsa]
  364. ##
  365. ## JACK backend stuff
  366. ##
  367. [jack]
  368. ## spawn-server: (global)
  369. # Attempts to autospawn a JACK server whenever needed (initializing the
  370. # backend, opening devices, etc).
  371. #spawn-server = false
  372. ## buffer-size:
  373. # Sets the update buffer size, in samples, that the backend will keep buffered
  374. # to handle the server's real-time processing requests. This value must be a
  375. # power of 2, or else it will be rounded up to the next power of 2. If it is
  376. # less than JACK's buffer update size, it will be clamped. This option may
  377. # be useful in case the server's update size is too small and doesn't give the
  378. # mixer time to keep enough audio available for the processing requests.
  379. #buffer-size = 0
  380. ##
  381. ## MMDevApi backend stuff
  382. ##
  383. [mmdevapi]
  384. ##
  385. ## DirectSound backend stuff
  386. ##
  387. [dsound]
  388. ##
  389. ## Windows Multimedia backend stuff
  390. ##
  391. [winmm]
  392. ##
  393. ## PortAudio backend stuff
  394. ##
  395. [port]
  396. ## device: (global)
  397. # Sets the device index for output. Negative values will use the default as
  398. # given by PortAudio itself.
  399. #device = -1
  400. ## capture: (global)
  401. # Sets the device index for capture. Negative values will use the default as
  402. # given by PortAudio itself.
  403. #capture = -1
  404. ##
  405. ## Wave File Writer stuff
  406. ##
  407. [wave]
  408. ## file: (global)
  409. # Sets the filename of the wave file to write to. An empty name prevents the
  410. # backend from opening, even when explicitly requested.
  411. # THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
  412. #file =
  413. ## bformat: (global)
  414. # Creates AMB format files using first-order ambisonics instead of a standard
  415. # single- or multi-channel .wav file.
  416. #bformat = false