3
0

MiniAudioPlaybackComponent.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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 <AzCore/Asset/AssetCommon.h>
  10. #include <AzCore/Component/Component.h>
  11. #include <AzFramework/Components/ComponentAdapter.h>
  12. #include <MiniAudio/MiniAudioConstants.h>
  13. #include <MiniAudio/MiniAudioPlaybackBus.h>
  14. #include "MiniAudioPlaybackComponentController.h"
  15. #include "MiniAudioPlaybackComponentConfig.h"
  16. namespace MiniAudio
  17. {
  18. class MiniAudioPlaybackComponent final
  19. : public AzFramework::Components::ComponentAdapter<MiniAudioPlaybackComponentController, MiniAudioPlaybackComponentConfig>
  20. {
  21. using BaseClass = AzFramework::Components::ComponentAdapter<MiniAudioPlaybackComponentController, MiniAudioPlaybackComponentConfig>;
  22. public:
  23. AZ_COMPONENT(MiniAudioPlaybackComponent, MiniAudioPlaybackComponentTypeId, BaseClass);
  24. MiniAudioPlaybackComponent() = default;
  25. explicit MiniAudioPlaybackComponent(const MiniAudioPlaybackComponentConfig& config);
  26. static void Reflect(AZ::ReflectContext* context);
  27. };
  28. } // namespace MiniAudio