env-vars.txt 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. ALSOFT_LOGFILE
  12. Specifies a filename that logged output will be written to. Note that the file
  13. will be first cleared when logging is initialized.
  14. *** Overrides ***
  15. ALSOFT_CONF
  16. Specifies an additional configuration file to load settings from. These
  17. settings will take precedence over the global and user configs, but not other
  18. environment variable settings.
  19. ALSOFT_DRIVERS
  20. Overrides the drivers config option. This specifies which backend drivers to
  21. consider or not consider for use. Please see the drivers option in
  22. alsoftrc.sample for a list of available drivers.
  23. ALSOFT_DEFAULT_REVERB
  24. Specifies the default reverb preset to apply to sources. Please see the
  25. default-reverb option in alsoftrc.sample for additional information and a list
  26. of available presets.
  27. ALSOFT_TRAP_AL_ERROR
  28. Set to "true" or "1" to force trapping AL errors. Like the trap-al-error config
  29. option, this will raise a SIGTRAP signal (or a breakpoint exception under
  30. Windows) when a context-level error is generated. Useful when run under a
  31. debugger as it will break execution right when the error occurs, making it
  32. easier to track the cause.
  33. ALSOFT_TRAP_ALC_ERROR
  34. Set to "true" or "1" to force trapping ALC errors. Like the trap-alc-error
  35. config option, this will raise a SIGTRAP signal (or a breakpoint exception
  36. under Windows) when a device-level error is generated. Useful when run under a
  37. debugger as it will break execution right when the error occurs, making it
  38. easier to track the cause.
  39. ALSOFT_TRAP_ERROR
  40. Set to "true" or "1" to force trapping both ALC and AL errors.
  41. *** Compatibility ***
  42. __ALSOFT_HALF_ANGLE_CONES
  43. Older versions of OpenAL Soft incorrectly calculated the cone angles to range
  44. between 0 and 180 degrees, instead of the expected range of 0 to 360 degrees.
  45. Setting this to "true" or "1" restores the old buggy behavior, for apps that
  46. were written to expect the incorrect range.
  47. __ALSOFT_ENABLE_SUB_DATA_EXT
  48. The more widely used AL_EXT_SOURCE_RADIUS extension is incompatible with the
  49. now-defunct AL_SOFT_buffer_sub_data extension. Setting this to "true" or "1"
  50. restores the AL_SOFT_buffer_sub_data extension for apps that require it,
  51. disabling AL_EXT_SOURCE_RADIUS.
  52. __ALSOFT_REVERSE_Z
  53. Applications that don't natively use OpenAL's coordinate system have to convert
  54. to it before passing in 3D coordinates. Depending on how exactly this is done,
  55. it can cause correct output for stereo but incorrect Z panning for surround
  56. sound (i.e., sounds that are supposed to be behind you sound like they're in
  57. front, and vice-versa). Setting this to "true" or "1" will negate the localized
  58. Z coordinate to flip front/back panning for 3D sources.
  59. __ALSOFT_REVERSE_Y
  60. Same as for __ALSOFT_REVERSE_Z, but for Y (up/down) panning.
  61. __ALSOFT_REVERSE_X
  62. Same as for __ALSOFT_REVERSE_Z, but for X (left/right) panning.
  63. __ALSOFT_DEFAULT_ERROR
  64. Applications that erroneously call alGetError prior to setting a context as
  65. current may not like that OpenAL Soft returns 0xA004 (AL_INVALID_OPERATION),
  66. indicating that the call could not be executed as there's no context to get the
  67. error value from. This can be set to 0 (AL_NO_ERROR) to let such apps pass the
  68. check despite the problem. Other applications, however, may see AL_NO_ERROR
  69. returned and assume any previous AL calls succeeded when they actually failed,
  70. so this should only be set when necessary.
  71. __ALSOFT_SUSPEND_CONTEXT
  72. Due to the OpenAL spec not being very clear about them, behavior of the
  73. alcSuspendContext and alcProcessContext methods has varied, and because of
  74. that, previous versions of OpenAL Soft had them no-op. Creative's hardware
  75. drivers and the Rapture3D driver, however, use these methods to batch changes,
  76. which some applications make use of to protect against partial updates. In an
  77. attempt to standardize on that behavior, OpenAL Soft has changed those methods
  78. accordingly. Setting this to "ignore" restores the previous no-op behavior for
  79. applications that interact poorly with the new behavior.