MicrophoneModule.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #include "MicrophoneSystemComponent.h"
  9. #include <IGem.h>
  10. namespace Audio
  11. {
  12. class MicrophoneModule
  13. : public CryHooksModule
  14. {
  15. public:
  16. AZ_RTTI(MicrophoneModule, "{99939704-566A-42B1-8A7A-567E01C63D9C}", CryHooksModule);
  17. MicrophoneModule()
  18. : CryHooksModule()
  19. {
  20. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  21. m_descriptors.insert(m_descriptors.end(), { MicrophoneSystemComponent::CreateDescriptor() });
  22. }
  23. /**
  24. * Add required SystemComponents to the SystemEntity.
  25. */
  26. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  27. {
  28. return AZ::ComponentTypeList {
  29. azrtti_typeid<MicrophoneSystemComponent>(),
  30. };
  31. }
  32. };
  33. }
  34. #if defined(O3DE_GEM_NAME)
  35. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), Audio::MicrophoneModule)
  36. #else
  37. AZ_DECLARE_MODULE_CLASS(Gem_Microphone, Audio::MicrophoneModule)
  38. #endif