3
0

MicrophoneModule.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  35. // The first parameter should be GemName_GemIdLower
  36. // The second should be the fully qualified name of the class above
  37. AZ_DECLARE_MODULE_CLASS(Gem_Microphone, Audio::MicrophoneModule)