audio_core.h 685 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2016 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <array>
  6. #include <string>
  7. #include "common/common_types.h"
  8. #include "core/memory.h"
  9. namespace AudioCore {
  10. constexpr int native_sample_rate = 32728; ///< 32kHz
  11. /// Initialise Audio Core
  12. void Init();
  13. /// Returns a reference to the array backing DSP memory
  14. std::array<u8, Memory::DSP_RAM_SIZE>& GetDspMemory();
  15. /// Select the sink to use based on sink id.
  16. void SelectSink(std::string sink_id);
  17. /// Enable/Disable stretching.
  18. void EnableStretching(bool enable);
  19. /// Shutdown Audio Core
  20. void Shutdown();
  21. } // namespace AudioCore