diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-14 22:52:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-14 22:52:40 +0200 |
commit | 180587bb8bd18feeb81028007556276ef4ecaafd (patch) | |
tree | 5939bfa2c92ced9b30ade0b725ace7b7dce3d040 /src/audio_core/audio_core.h | |
parent | Merge pull request #2695 from JayFoxRox/gs-regs (diff) | |
parent | Kernel: Map special regions according to ExHeader (diff) | |
download | yuzu-180587bb8bd18feeb81028007556276ef4ecaafd.tar yuzu-180587bb8bd18feeb81028007556276ef4ecaafd.tar.gz yuzu-180587bb8bd18feeb81028007556276ef4ecaafd.tar.bz2 yuzu-180587bb8bd18feeb81028007556276ef4ecaafd.tar.lz yuzu-180587bb8bd18feeb81028007556276ef4ecaafd.tar.xz yuzu-180587bb8bd18feeb81028007556276ef4ecaafd.tar.zst yuzu-180587bb8bd18feeb81028007556276ef4ecaafd.zip |
Diffstat (limited to 'src/audio_core/audio_core.h')
-rw-r--r-- | src/audio_core/audio_core.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/audio_core/audio_core.h b/src/audio_core/audio_core.h index 0edf6dd15..ab323ce1f 100644 --- a/src/audio_core/audio_core.h +++ b/src/audio_core/audio_core.h @@ -4,11 +4,10 @@ #pragma once +#include <array> #include <string> - -namespace Kernel { -class VMManager; -} +#include "common/common_types.h" +#include "core/memory.h" namespace AudioCore { @@ -17,8 +16,8 @@ constexpr int native_sample_rate = 32728; ///< 32kHz /// Initialise Audio Core void Init(); -/// Add DSP address spaces to a Process. -void AddAddressSpace(Kernel::VMManager& vm_manager); +/// Returns a reference to the array backing DSP memory +std::array<u8, Memory::DSP_RAM_SIZE>& GetDspMemory(); /// Select the sink to use based on sink id. void SelectSink(std::string sink_id); @@ -29,4 +28,4 @@ void EnableStretching(bool enable); /// Shutdown Audio Core void Shutdown(); -} // namespace +} // namespace AudioCore |