alsoftrc.sample 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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. #channels =
  49. ## sample-type:
  50. # Sets the output sample type. Currently, all mixing is done with 32-bit float
  51. # and converted to the output sample type as needed. Available values are:
  52. # int8 - signed 8-bit int
  53. # uint8 - unsigned 8-bit int
  54. # int16 - signed 16-bit int
  55. # uint16 - unsigned 16-bit int
  56. # int32 - signed 32-bit int
  57. # uint32 - unsigned 32-bit int
  58. # float32 - 32-bit float
  59. #sample-type = float32
  60. ## frequency:
  61. # Sets the output frequency. If left unspecified it will try to detect a
  62. # default from the system, otherwise it will default to 44100.
  63. #frequency =
  64. ## period_size:
  65. # Sets the update period size, in frames. This is the number of frames needed
  66. # for each mixing update. Acceptable values range between 64 and 8192.
  67. #period_size = 1024
  68. ## periods:
  69. # Sets the number of update periods. Higher values create a larger mix ahead,
  70. # which helps protect against skips when the CPU is under load, but increases
  71. # the delay between a sound getting mixed and being heard. Acceptable values
  72. # range between 2 and 16.
  73. #periods = 4
  74. ## stereo-mode:
  75. # Specifies if stereo output is treated as being headphones or speakers. With
  76. # headphones, HRTF or crossfeed filters may be used for better audio quality.
  77. # Valid settings are auto, speakers, and headphones.
  78. #stereo-mode = auto
  79. ## hrtf:
  80. # Controls HRTF processing. These filters provide better spatialization of
  81. # sounds while using headphones, but do require a bit more CPU power. The
  82. # default filters will only work with 44100hz or 48000hz stereo output. While
  83. # HRTF is used, the cf_level option is ignored. Setting this to auto (default)
  84. # will allow HRTF to be used when headphones are detected or the app requests
  85. # it, while setting true or false will forcefully enable or disable HRTF
  86. # respectively.
  87. #hrtf = auto
  88. ## hrtf_tables:
  89. # Specifies a comma-separated list of files containing HRTF data sets. The
  90. # format of the files are described in hrtf.txt. The filenames may contain
  91. # these markers, which will be replaced as needed:
  92. # %r - Device sampling rate
  93. # %% - Percent sign (%)
  94. # The listed files are relative to system-dependant data directories. On
  95. # Windows this is:
  96. # $AppData\openal\hrtf
  97. # And on other systems, it's (in order):
  98. # $XDG_DATA_HOME/openal/hrtf (defaults to $HOME/.local/share/openal/hrtf)
  99. # $XDG_DATA_DIRS/openal/hrtf (defaults to /usr/local/share/openal/hrtf and
  100. # /usr/share/openal/hrtf)
  101. # An absolute path may also be specified, if the given file is elsewhere.
  102. #hrtf_tables = default-%r.mhr
  103. ## cf_level:
  104. # Sets the crossfeed level for stereo output. Valid values are:
  105. # 0 - No crossfeed
  106. # 1 - Low crossfeed
  107. # 2 - Middle crossfeed
  108. # 3 - High crossfeed (virtual speakers are closer to itself)
  109. # 4 - Low easy crossfeed
  110. # 5 - Middle easy crossfeed
  111. # 6 - High easy crossfeed
  112. # Users of headphones may want to try various settings. Has no effect on non-
  113. # stereo modes.
  114. #cf_level = 0
  115. ## resampler: (global)
  116. # Selects the resampler used when mixing sources. Valid values are:
  117. # point - nearest sample, no interpolation
  118. # linear - extrapolates samples using a linear slope between samples
  119. # sinc4 - extrapolates samples using a 4-point Sinc filter
  120. # sinc8 - extrapolates samples using an 8-point Sinc filter
  121. # bsinc - extrapolates samples using a band-limited Sinc filter (varying
  122. # between 12 and 24 points, with anti-aliasing)
  123. # Specifying other values will result in using the default (linear).
  124. #resampler = linear
  125. ## rt-prio: (global)
  126. # Sets real-time priority for the mixing thread. Not all drivers may use this
  127. # (eg. PortAudio) as they already control the priority of the mixing thread.
  128. # 0 and negative values will disable it. Note that this may constitute a
  129. # security risk since a real-time priority thread can indefinitely block
  130. # normal-priority threads if it fails to wait. As such, the default is
  131. # disabled.
  132. #rt-prio = 0
  133. ## sources:
  134. # Sets the maximum number of allocatable sources. Lower values may help for
  135. # systems with apps that try to play more sounds than the CPU can handle.
  136. #sources = 256
  137. ## slots:
  138. # Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
  139. # can use a non-negligible amount of CPU time if an effect is set on it even
  140. # if no sources are feeding it, so this may help when apps use more than the
  141. # system can handle.
  142. #slots = 4
  143. ## sends:
  144. # Sets the number of auxiliary sends per source. When not specified (default),
  145. # it allows the app to request how many it wants. The maximum value currently
  146. # possible is 4.
  147. #sends =
  148. ## excludefx: (global)
  149. # Sets which effects to exclude, preventing apps from using them. This can
  150. # help for apps that try to use effects which are too CPU intensive for the
  151. # system to handle. Available effects are: eaxreverb,reverb,chorus,compressor,
  152. # distortion,echo,equalizer,flanger,modulator,dedicated
  153. #excludefx =
  154. ## default-reverb: (global)
  155. # A reverb preset that applies by default to all sources on send 0
  156. # (applications that set their own slots on send 0 will override this).
  157. # Available presets are: None, Generic, PaddedCell, Room, Bathroom,
  158. # Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
  159. # CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
  160. # Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
  161. #default-reverb =
  162. ## trap-alc-error: (global)
  163. # Generates a SIGTRAP signal when an ALC device error is generated, on systems
  164. # that support it. This helps when debugging, while trying to find the cause
  165. # of a device error. On Windows, a breakpoint exception is generated.
  166. #trap-alc-error = false
  167. ## trap-al-error: (global)
  168. # Generates a SIGTRAP signal when an AL context error is generated, on systems
  169. # that support it. This helps when debugging, while trying to find the cause
  170. # of a context error. On Windows, a breakpoint exception is generated.
  171. #trap-al-error = false
  172. ##
  173. ## Reverb effect stuff (includes EAX reverb)
  174. ##
  175. [reverb]
  176. ## boost: (global)
  177. # A global amplification for reverb output, expressed in decibels. The value
  178. # is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
  179. # scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
  180. # value of 0 means no change.
  181. #boost = 0
  182. ## emulate-eax: (global)
  183. # Allows the standard reverb effect to be used in place of EAX reverb. EAX
  184. # reverb processing is a bit more CPU intensive than standard, so this option
  185. # allows a simpler effect to be used at the loss of some quality.
  186. #emulate-eax = false
  187. ##
  188. ## PulseAudio backend stuff
  189. ##
  190. [pulse]
  191. ## spawn-server: (global)
  192. # Attempts to autospawn a PulseAudio server whenever needed (initializing the
  193. # backend, enumerating devices, etc). Setting autospawn to false in Pulse's
  194. # client.conf will still prevent autospawning even if this is set to true.
  195. #spawn-server = true
  196. ## allow-moves: (global)
  197. # Allows PulseAudio to move active streams to different devices. Note that the
  198. # device specifier (seen by applications) will not be updated when this
  199. # occurs, and neither will the AL device configuration (sample rate, format,
  200. # etc).
  201. #allow-moves = false
  202. ## fix-rate:
  203. # Specifies whether to match the playback stream's sample rate to the device's
  204. # sample rate. Enabling this forces OpenAL Soft to mix sources and effects
  205. # directly to the actual output rate, avoiding a second resample pass by the
  206. # PulseAudio server.
  207. #fix-rate = false
  208. ##
  209. ## ALSA backend stuff
  210. ##
  211. [alsa]
  212. ## device: (global)
  213. # Sets the device name for the default playback device.
  214. #device = default
  215. ## device-prefix: (global)
  216. # Sets the prefix used by the discovered (non-default) playback devices. This
  217. # will be appended with "CARD=c,DEV=d", where c is the card id and d is the
  218. # device index for the requested device name.
  219. #device-prefix = plughw:
  220. ## device-prefix-*: (global)
  221. # Card- and device-specific prefixes may be used to override the device-prefix
  222. # option. The option may specify the card id (eg, device-prefix-NVidia), or
  223. # the card id and device index (eg, device-prefix-NVidia-0). The card id is
  224. # case-sensitive.
  225. #device-prefix- =
  226. ## capture: (global)
  227. # Sets the device name for the default capture device.
  228. #capture = default
  229. ## capture-prefix: (global)
  230. # Sets the prefix used by the discovered (non-default) capture devices. This
  231. # will be appended with "CARD=c,DEV=d", where c is the card id and d is the
  232. # device number for the requested device name.
  233. #capture-prefix = plughw:
  234. ## capture-prefix-*: (global)
  235. # Card- and device-specific prefixes may be used to override the
  236. # capture-prefix option. The option may specify the card id (eg,
  237. # capture-prefix-NVidia), or the card id and device index (eg,
  238. # capture-prefix-NVidia-0). The card id is case-sensitive.
  239. #capture-prefix- =
  240. ## mmap:
  241. # Sets whether to try using mmap mode (helps reduce latencies and CPU
  242. # consumption). If mmap isn't available, it will automatically fall back to
  243. # non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
  244. # and anything else will force mmap off.
  245. #mmap = true
  246. ## allow-resampler:
  247. # Specifies whether to allow ALSA's built-in resampler. Enabling this will
  248. # allow the playback device to be set to a different sample rate than the
  249. # actual output, causing ALSA to apply its own resampling pass after OpenAL
  250. # Soft resamples and mixes the sources and effects for output.
  251. #allow-resampler = false
  252. ##
  253. ## OSS backend stuff
  254. ##
  255. [oss]
  256. ## device: (global)
  257. # Sets the device name for OSS output.
  258. #device = /dev/dsp
  259. ## capture: (global)
  260. # Sets the device name for OSS capture.
  261. #capture = /dev/dsp
  262. ##
  263. ## Solaris backend stuff
  264. ##
  265. [solaris]
  266. ## device: (global)
  267. # Sets the device name for Solaris output.
  268. #device = /dev/audio
  269. ##
  270. ## QSA backend stuff
  271. ##
  272. [qsa]
  273. ##
  274. ## JACK backend stuff
  275. ##
  276. [jack]
  277. ## spawn-server: (global)
  278. # Attempts to autospawn a JACK server whenever needed (initializing the
  279. # backend, opening devices, etc).
  280. #spawn-server = false
  281. ## buffer-size:
  282. # Sets the update buffer size, in samples, that the backend will keep buffered
  283. # to handle the server's real-time processing requests. This value must be a
  284. # power of 2, or else it will be rounded up to the next power of 2. If it is
  285. # less than JACK's buffer update size, it will be clamped. This option may
  286. # be useful in case the server's update size is too small and doesn't give the
  287. # mixer time to keep enough audio available for the processing requests.
  288. #buffer-size = 0
  289. ##
  290. ## MMDevApi backend stuff
  291. ##
  292. [mmdevapi]
  293. ##
  294. ## DirectSound backend stuff
  295. ##
  296. [dsound]
  297. ##
  298. ## Windows Multimedia backend stuff
  299. ##
  300. [winmm]
  301. ##
  302. ## PortAudio backend stuff
  303. ##
  304. [port]
  305. ## device: (global)
  306. # Sets the device index for output. Negative values will use the default as
  307. # given by PortAudio itself.
  308. #device = -1
  309. ## capture: (global)
  310. # Sets the device index for capture. Negative values will use the default as
  311. # given by PortAudio itself.
  312. #capture = -1
  313. ##
  314. ## Wave File Writer stuff
  315. ##
  316. [wave]
  317. ## file: (global)
  318. # Sets the filename of the wave file to write to. An empty name prevents the
  319. # backend from opening, even when explicitly requested.
  320. # THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
  321. #file =
  322. ## bformat: (global)
  323. # Creates AMB format files using first-order ambisonics instead of a standard
  324. # single- or multi-channel .wav file.
  325. #bformat = false