ATLCommon.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 <IAudioSystem.h>
  10. #include <AzCore/AzCore_Traits_Platform.h>
  11. namespace Audio
  12. {
  13. ///////////////////////////////////////////////////////////////////////////////////////////////
  14. namespace ATLXmlTags
  15. {
  16. static constexpr const char* PlatformName = AZ_TRAIT_OS_PLATFORM_NAME;
  17. static constexpr const char* PlatformCodeName = AZ_TRAIT_OS_PLATFORM_CODENAME;
  18. static constexpr const char* RootNodeTag = "ATLConfig";
  19. static constexpr const char* TriggersNodeTag = "AudioTriggers";
  20. static constexpr const char* RtpcsNodeTag = "AudioRtpcs";
  21. static constexpr const char* SwitchesNodeTag = "AudioSwitches";
  22. static constexpr const char* PreloadsNodeTag = "AudioPreloads";
  23. static constexpr const char* EnvironmentsNodeTag = "AudioEnvironments";
  24. static constexpr const char* ATLTriggerTag = "ATLTrigger";
  25. static constexpr const char* ATLSwitchTag = "ATLSwitch";
  26. static constexpr const char* ATLRtpcTag = "ATLRtpc";
  27. static constexpr const char* ATLSwitchStateTag = "ATLSwitchState";
  28. static constexpr const char* ATLEnvironmentTag = "ATLEnvironment";
  29. static constexpr const char* ATLPlatformsTag = "ATLPlatforms";
  30. static constexpr const char* ATLConfigGroupTag = "ATLConfigGroup";
  31. static constexpr const char* PlatformNodeTag = "Platform";
  32. static constexpr const char* ATLTriggerRequestTag = "ATLTriggerRequest";
  33. static constexpr const char* ATLSwitchRequestTag = "ATLSwitchRequest";
  34. static constexpr const char* ATLRtpcRequestTag = "ATLRtpcRequest";
  35. static constexpr const char* ATLPreloadRequestTag = "ATLPreloadRequest";
  36. static constexpr const char* ATLEnvironmentRequestTag = "ATLEnvironmentRequest";
  37. static constexpr const char* ATLValueTag = "ATLValue";
  38. static constexpr const char* ATLNameAttribute = "atl_name";
  39. static constexpr const char* ATLInternalNameAttribute = "atl_internal_name";
  40. static constexpr const char* ATLTypeAttribute = "atl_type";
  41. static constexpr const char* ATLConfigGroupAttribute = "atl_config_group_name";
  42. static constexpr const char* ATLPathAttribute = "path";
  43. static constexpr const char* ATLDataLoadType = "AutoLoad";
  44. } // namespace ATLXmlTags
  45. ///////////////////////////////////////////////////////////////////////////////////////////////
  46. namespace ATLInternalControlNames
  47. {
  48. static constexpr const char* LoseFocusName = "lose_focus";
  49. static constexpr const char* GetFocusName = "get_focus";
  50. static constexpr const char* MuteAllName = "mute_all";
  51. static constexpr const char* UnmuteAllName = "unmute_all";
  52. static constexpr const char* DoNothingName = "do_nothing";
  53. static constexpr const char* ObjectSpeedName = "object_speed";
  54. static constexpr const char* ObstructionOcclusionCalcName = "ObstructionOcclusionCalculationType";
  55. static constexpr const char* OOCIgnoreStateName = "Ignore";
  56. static constexpr const char* OOCSingleRayStateName = "SingleRay";
  57. static constexpr const char* OOCMultiRayStateName = "MultiRay";
  58. static constexpr const char* ObjectVelocityTrackingName = "object_velocity_tracking";
  59. static constexpr const char* OVTOnStateName = "on";
  60. static constexpr const char* OVTOffStateName = "off";
  61. static constexpr const char* GlobalPreloadRequestName = "global_atl_preloads";
  62. } // namespace ATLInternalControlNames
  63. ///////////////////////////////////////////////////////////////////////////////////////////////
  64. namespace ATLInternalControlIDs
  65. {
  66. static constexpr TAudioControlID LoseFocusTriggerID = static_cast<TAudioControlID>(AZ_CRC_CE(ATLInternalControlNames::LoseFocusName));
  67. static constexpr TAudioControlID GetFocusTriggerID = static_cast<TAudioControlID>(AZ_CRC_CE(ATLInternalControlNames::GetFocusName));
  68. static constexpr TAudioControlID MuteAllTriggerID = static_cast<TAudioControlID>(AZ_CRC_CE(ATLInternalControlNames::MuteAllName));
  69. static constexpr TAudioControlID UnmuteAllTriggerID = static_cast<TAudioControlID>(AZ_CRC_CE(ATLInternalControlNames::UnmuteAllName));
  70. static constexpr TAudioControlID DoNothingTriggerID = static_cast<TAudioControlID>(AZ_CRC_CE(ATLInternalControlNames::DoNothingName));
  71. static constexpr TAudioControlID ObjectSpeedRtpcID = static_cast<TAudioControlID>(AZ_CRC_CE(ATLInternalControlNames::ObjectSpeedName));
  72. static constexpr TAudioControlID ObstructionOcclusionCalcSwitchID = static_cast<TAudioControlID>(AZ_CRC_CE(ATLInternalControlNames::ObstructionOcclusionCalcName));
  73. static constexpr TAudioSwitchStateID OOCStateIDs[] =
  74. {
  75. static_cast<TAudioSwitchStateID>(AZ_CRC_CE(ATLInternalControlNames::OOCIgnoreStateName)),
  76. static_cast<TAudioSwitchStateID>(AZ_CRC_CE(ATLInternalControlNames::OOCSingleRayStateName)),
  77. static_cast<TAudioSwitchStateID>(AZ_CRC_CE(ATLInternalControlNames::OOCMultiRayStateName))
  78. };
  79. static constexpr TAudioControlID ObjectVelocityTrackingSwitchID = static_cast<TAudioControlID>(AZ_CRC_CE(ATLInternalControlNames::ObjectVelocityTrackingName));
  80. static constexpr TAudioSwitchStateID OVTOnStateID = static_cast<TAudioSwitchStateID>(AZ_CRC_CE(ATLInternalControlNames::OVTOnStateName));
  81. static constexpr TAudioSwitchStateID OVTOffStateID = static_cast<TAudioSwitchStateID>(AZ_CRC_CE(ATLInternalControlNames::OVTOffStateName));
  82. static constexpr TAudioPreloadRequestID GlobalPreloadRequestID = static_cast<TAudioPreloadRequestID>(AZ_CRC_CE(ATLInternalControlNames::GlobalPreloadRequestName));
  83. } // namespace ATLInternalControlIDs
  84. } // namespace Audio