alsoftrc.sample 14 KB

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