1
0
Fork 0

fixup! audio_core: Remove global state

This commit is contained in:
MerryMage 2018-02-04 22:23:51 +00:00
parent 7c7fddd7bd
commit adf9a19095
2 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,8 @@ private:
};
DspHle::Impl::Impl(DspHle& parent_) : parent(parent_) {
dsp_memory.raw_memory.fill(0);
tick_event =
CoreTiming::RegisterEvent("AudioCore::DspHle::tick_event", [this](u64, int cycles_late) {
this->AudioTickCallback(cycles_late);

View File

@ -510,7 +510,7 @@ struct SharedMemory {
ASSERT_DSP_STRUCT(SharedMemory, 0x8000);
union DspMemory {
std::array<u8, 0x80000> raw_memory;
std::array<u8, 0x80000> raw_memory{};
struct {
u8 unused_0[0x50000];
SharedMemory region_0;