diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-01 06:36:00 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-10 06:44:00 +0200 |
commit | b4a93cfddecdb939562e56d7609657d2f14b6702 (patch) | |
tree | 75da1f521209b74fa82a982356b878bd1c475562 /src/audio_core/audio_core.cpp | |
parent | Memory: Add constants for the n3DS additional RAM (diff) | |
download | yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.gz yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.bz2 yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.lz yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.xz yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.zst yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.zip |
Diffstat (limited to 'src/audio_core/audio_core.cpp')
-rw-r--r-- | src/audio_core/audio_core.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/audio_core/audio_core.cpp b/src/audio_core/audio_core.cpp index 84f9c03a7..9c2e6ed88 100644 --- a/src/audio_core/audio_core.cpp +++ b/src/audio_core/audio_core.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <array> #include <memory> #include <string> #include "audio_core/audio_core.h" @@ -10,8 +11,8 @@ #include "audio_core/null_sink.h" #include "audio_core/sink.h" #include "audio_core/sink_details.h" +#include "common/common_types.h" #include "core/core_timing.h" -#include "core/hle/kernel/vm_manager.h" #include "core/hle/service/dsp_dsp.h" namespace AudioCore { @@ -39,20 +40,8 @@ void Init() { CoreTiming::ScheduleEvent(audio_frame_ticks, tick_event); } -void AddAddressSpace(Kernel::VMManager& address_space) { - auto r0_vma = address_space - .MapBackingMemory(DSP::HLE::region0_base, - reinterpret_cast<u8*>(&DSP::HLE::g_regions[0]), - sizeof(DSP::HLE::SharedMemory), Kernel::MemoryState::IO) - .MoveFrom(); - address_space.Reprotect(r0_vma, Kernel::VMAPermission::ReadWrite); - - auto r1_vma = address_space - .MapBackingMemory(DSP::HLE::region1_base, - reinterpret_cast<u8*>(&DSP::HLE::g_regions[1]), - sizeof(DSP::HLE::SharedMemory), Kernel::MemoryState::IO) - .MoveFrom(); - address_space.Reprotect(r1_vma, Kernel::VMAPermission::ReadWrite); +std::array<u8, Memory::DSP_RAM_SIZE>& GetDspMemory() { + return DSP::HLE::g_dsp_memory.raw_memory; } void SelectSink(std::string sink_id) { |