diff options
author | bunnei <bunneidev@gmail.com> | 2016-04-29 18:18:26 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-04-29 18:18:26 +0200 |
commit | 73624b4721a091022e6c715b96d69daddc933fdd (patch) | |
tree | 5ea541705fb66a829e2cf6060af39b7cf0054109 /src/audio_core/hle/dsp.h | |
parent | Merge pull request #1723 from MerryMage/audio-interp (diff) | |
parent | AudioCore: CurrentRegion() -> ReadRegion(), WriteRegion() (diff) | |
download | yuzu-73624b4721a091022e6c715b96d69daddc933fdd.tar yuzu-73624b4721a091022e6c715b96d69daddc933fdd.tar.gz yuzu-73624b4721a091022e6c715b96d69daddc933fdd.tar.bz2 yuzu-73624b4721a091022e6c715b96d69daddc933fdd.tar.lz yuzu-73624b4721a091022e6c715b96d69daddc933fdd.tar.xz yuzu-73624b4721a091022e6c715b96d69daddc933fdd.tar.zst yuzu-73624b4721a091022e6c715b96d69daddc933fdd.zip |
Diffstat (limited to 'src/audio_core/hle/dsp.h')
-rw-r--r-- | src/audio_core/hle/dsp.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/audio_core/hle/dsp.h b/src/audio_core/hle/dsp.h index c76350bdd..f0f125284 100644 --- a/src/audio_core/hle/dsp.h +++ b/src/audio_core/hle/dsp.h @@ -4,6 +4,7 @@ #pragma once +#include <array> #include <cstddef> #include <type_traits> @@ -30,10 +31,9 @@ namespace HLE { struct SharedMemory; constexpr VAddr region0_base = 0x1FF50000; -extern SharedMemory g_region0; - constexpr VAddr region1_base = 0x1FF70000; -extern SharedMemory g_region1; + +extern std::array<SharedMemory, 2> g_regions; /** * The DSP is native 16-bit. The DSP also appears to be big-endian. When reading 32-bit numbers from @@ -535,8 +535,5 @@ void Shutdown(); */ bool Tick(); -/// Returns a mutable reference to the current region. Current region is selected based on the frame counter. -SharedMemory& CurrentRegion(); - } // namespace HLE } // namespace DSP |