SoundCVars.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <ATLUtils.h>
  10. #include <AzCore/Console/IConsole.h>
  11. namespace Audio::CVars
  12. {
  13. AZ_CVAR_EXTERNED(AZ::u32, sys_audio_disable);
  14. AZ_CVAR_EXTERNED(AZ::u64, s_ATLMemorySize);
  15. AZ_CVAR_EXTERNED(AZ::u64, s_FileCacheManagerMemorySize);
  16. AZ_CVAR_EXTERNED(AZ::u64, s_AudioObjectPoolSize);
  17. AZ_CVAR_EXTERNED(AZ::u64, s_AudioEventPoolSize);
  18. AZ_CVAR_EXTERNED(bool, s_EnableRaycasts);
  19. AZ_CVAR_EXTERNED(float, s_RaycastMinDistance);
  20. AZ_CVAR_EXTERNED(float, s_RaycastMaxDistance);
  21. AZ_CVAR_EXTERNED(float, s_RaycastCacheTimeMs);
  22. AZ_CVAR_EXTERNED(float, s_RaycastSmoothFactor);
  23. AZ_CVAR_EXTERNED(float, s_PositionUpdateThreshold);
  24. AZ_CVAR_EXTERNED(float, s_VelocityTrackingThreshold);
  25. AZ_CVAR_EXTERNED(AZ::u32, s_AudioProxiesInitType);
  26. AZ_CVAR_EXTERNED(AZ::CVarFixedString, g_languageAudio);
  27. #if !defined(AUDIO_RELEASE)
  28. AZ_CVAR_EXTERNED(bool, s_IgnoreWindowFocus);
  29. AZ_CVAR_EXTERNED(bool, s_ShowActiveAudioObjectsOnly);
  30. AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_AudioTriggersDebugFilter);
  31. AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_AudioObjectsDebugFilter);
  32. AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_DrawAudioDebug);
  33. inline Audio::Flags<AZ::u32> s_debugDrawOptions;
  34. AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_FileCacheManagerDebugFilter);
  35. inline Audio::Flags<AZ::u32> s_fcmDrawOptions;
  36. #endif // !AUDIO_RELEASE
  37. } // namespace Audio::CVars
  38. #if !defined(AUDIO_RELEASE)
  39. // Flags for the debug draw cvars
  40. namespace Audio::DebugDraw
  41. {
  42. enum class Options
  43. {
  44. None = 0,
  45. DrawObjects = (1 << 0),
  46. ObjectLabels = (1 << 1),
  47. ObjectTriggers = (1 << 2),
  48. ObjectStates = (1 << 3),
  49. ObjectRtpcs = (1 << 4),
  50. ObjectEnvironments = (1 << 5),
  51. DrawRays = (1 << 6),
  52. RayLabels = (1 << 7),
  53. DrawListener = (1 << 8),
  54. ActiveEvents = (1 << 9),
  55. ActiveObjects = (1 << 10),
  56. FileCacheInfo = (1 << 11),
  57. MemoryInfo = (1 << 12),
  58. };
  59. AZ_DEFINE_ENUM_BITWISE_OPERATORS(Audio::DebugDraw::Options);
  60. } // namespace Audio::DebugDraw
  61. namespace Audio::FileCacheManagerDebugDraw
  62. {
  63. enum class Options
  64. {
  65. All = 0,
  66. Global = (1 << 0),
  67. LevelSpecific = (1 << 1),
  68. UseCounted = (1 << 2),
  69. Loaded = (1 << 3),
  70. };
  71. AZ_DEFINE_ENUM_BITWISE_OPERATORS(Audio::FileCacheManagerDebugDraw::Options);
  72. } // namespace Audio::FileCacheManagerDebugDraw
  73. #endif // !AUDIO_RELEASE