AudioInputMicrophone.h 809 B

123456789101112131415161718192021222324252627282930
  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 <AudioSourceManager.h>
  10. namespace Audio
  11. {
  12. ///////////////////////////////////////////////////////////////////////////////////////////////
  13. class AudioInputMicrophone
  14. : public AudioInputSource
  15. {
  16. public:
  17. AudioInputMicrophone(const SAudioInputConfig& sourceConfig);
  18. ~AudioInputMicrophone() override;
  19. void ReadInput(const AudioStreamData& data) override;
  20. void WriteOutput(AkAudioBuffer* akBuffer) override;
  21. bool IsOk() const override;
  22. void OnDeactivated() override;
  23. };
  24. } // namespace Audio