diff options
author | MerryMage <MerryMage@users.noreply.github.com> | 2016-04-25 11:01:37 +0200 |
---|---|---|
committer | MerryMage <MerryMage@users.noreply.github.com> | 2016-04-29 17:32:29 +0200 |
commit | 22995bd9bfc5e7f103e03066d4aa035e4294c359 (patch) | |
tree | 7610b942422a12796f6cfacbaf287fdbf61b4b6b /src/audio_core/hle/dsp.h | |
parent | Merge pull request #1708 from MerryMage/dsp_dsp (diff) | |
download | yuzu-22995bd9bfc5e7f103e03066d4aa035e4294c359.tar yuzu-22995bd9bfc5e7f103e03066d4aa035e4294c359.tar.gz yuzu-22995bd9bfc5e7f103e03066d4aa035e4294c359.tar.bz2 yuzu-22995bd9bfc5e7f103e03066d4aa035e4294c359.tar.lz yuzu-22995bd9bfc5e7f103e03066d4aa035e4294c359.tar.xz yuzu-22995bd9bfc5e7f103e03066d4aa035e4294c359.tar.zst yuzu-22995bd9bfc5e7f103e03066d4aa035e4294c359.zip |
Diffstat (limited to '')
-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 c15ef0b7a..f94ec9467 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 |