🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
4.2 KiB

  1. Useful Environment Variables
  2. Below is a list of environment variables that can be set to aid with running or
  3. debugging apps that use OpenAL Soft. They should be set before the app is run.
  4. *** Logging ***
  5. ALSOFT_LOGLEVEL
  6. Specifies the amount of logging OpenAL Soft will write out:
  7. 0 - Effectively disables all logging
  8. 1 - Prints out errors only
  9. 2 - Prints out warnings and errors
  10. 3 - Prints out additional information, as well as warnings and errors
  11. 4 - Same as 3, but also device and context reference count changes. This will
  12. print out *a lot* of info, and is generally not useful unless you're trying
  13. to track a reference leak within the library.
  14. ALSOFT_LOGFILE
  15. Specifies a filename that logged output will be written to. Note that the file
  16. will be first cleared when logging is initialized.
  17. *** Overrides ***
  18. ALSOFT_CONF
  19. Specifies an additional configuration file to load settings from. These
  20. settings will take precedence over the global and user configs, but not other
  21. environment variable settings.
  22. ALSOFT_DRIVERS
  23. Overrides the drivers config option. This specifies which backend drivers to
  24. consider or not consider for use. Please see the drivers option in
  25. alsoftrc.sample for a list of available drivers.
  26. ALSOFT_DEFAULT_REVERB
  27. Specifies the default reverb preset to apply to sources. Please see the
  28. default-reverb option in alsoftrc.sample for additional information and a list
  29. of available presets.
  30. ALSOFT_TRAP_AL_ERROR
  31. Set to "true" or "1" to force trapping AL errors. Like the trap-al-error config
  32. option, this will raise a SIGTRAP signal (or a breakpoint exception under
  33. Windows) when a context-level error is generated. Useful when run under a
  34. debugger as it will break execution right when the error occurs, making it
  35. easier to track the cause.
  36. ALSOFT_TRAP_ALC_ERROR
  37. Set to "true" or "1" to force trapping ALC errors. Like the trap-alc-error
  38. config option, this will raise a SIGTRAP signal (or a breakpoint exception
  39. under Windows) when a device-level error is generated. Useful when run under a
  40. debugger as it will break execution right when the error occurs, making it
  41. easier to track the cause.
  42. ALSOFT_TRAP_ERROR
  43. Set to "true" or "1" to force trapping both ALC and AL errors.
  44. *** Compatibility ***
  45. __ALSOFT_HALF_ANGLE_CONES
  46. Older versions of OpenAL Soft incorrectly calculated the cone angles to range
  47. between 0 and 180 degrees, instead of the expected range of 0 to 360 degrees.
  48. Setting this to "true" or "1" restores the old buggy behavior, for apps that
  49. were written to expect the incorrect range.
  50. __ALSOFT_REVERSE_Z
  51. Applications that don't natively use OpenAL's coordinate system have to convert
  52. to it before passing in 3D coordinates. Depending on how exactly this is done,
  53. it can cause correct output for stereo but incorrect Z panning for surround
  54. sound (i.e., sounds that are supposed to be behind you sound like they're in
  55. front, and vice-versa). Setting this to "true" or "1" will negate the localized
  56. Z coordinate to attempt to fix output for apps that have incorrect front/back
  57. panning.
  58. __ALSOFT_SUSPEND_CONTEXT
  59. Due to the OpenAL spec not being very clear about them, behavior of the
  60. alcSuspendContext and alcProcessContext methods has varied, and because of
  61. that, previous versions of OpenAL Soft had them no-op. Creative's hardware
  62. drivers and the Rapture3D driver, however, use these methods to batch changes,
  63. which some applications make use of to protect against partial updates. In an
  64. attempt to standardize on that behavior, OpenAL Soft has changed those methods
  65. accordingly. Setting this to "ignore" restores the previous no-op behavior for
  66. applications that interact poorly with the new behavior.
  67. __ALSOFT_REVERB_IGNORES_SOUND_SPEED
  68. Older versions of OpenAL Soft ignored the app-specified speed of sound when
  69. calculating distance-related reverb decays and always assumed the default
  70. 343.3m/s. Now, both of the AL_SPEED_OF_SOUND and AL_METERS_PER_UNIT properties
  71. are taken into account for speed of sound adjustments to have an appropriate
  72. affect on the reverb decay. Consequently, applications that use reverb but
  73. don't set these properties properly may find the reverb decay too strong.
  74. Setting this to "true" or "1" will revert to the old behavior for those apps
  75. and assume the default speed of sound for reverb.