// Copyright 2017 Citra Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #pragma once #include #include #include #include "audio_core/audio_types.h" #include "audio_core/dsp_interface.h" #include "common/common_types.h" #include "core/hle/service/dsp/dsp_dsp.h" #include "core/memory.h" namespace Memory { class MemorySystem; } namespace AudioCore { class DspHle final : public DspInterface { public: explicit DspHle(Memory::MemorySystem& memory); ~DspHle(); u16 RecvData(u32 register_number) override; std::vector PipeRead(DspPipe pipe_number, u32 length) override; std::size_t GetPipeReadableSize(DspPipe pipe_number) const override; void PipeWrite(DspPipe pipe_number, const std::vector& buffer) override; std::array& GetDspMemory() override; void SetServiceToInterrupt(std::weak_ptr dsp) override; private: struct Impl; friend struct Impl; std::unique_ptr impl; }; } // namespace AudioCore