mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-15 13:50:06 +00:00
fixup! audio_core: Remove global state
This commit is contained in:
parent
7c7fddd7bd
commit
adf9a19095
@ -63,6 +63,8 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
DspHle::Impl::Impl(DspHle& parent_) : parent(parent_) {
|
DspHle::Impl::Impl(DspHle& parent_) : parent(parent_) {
|
||||||
|
dsp_memory.raw_memory.fill(0);
|
||||||
|
|
||||||
tick_event =
|
tick_event =
|
||||||
CoreTiming::RegisterEvent("AudioCore::DspHle::tick_event", [this](u64, int cycles_late) {
|
CoreTiming::RegisterEvent("AudioCore::DspHle::tick_event", [this](u64, int cycles_late) {
|
||||||
this->AudioTickCallback(cycles_late);
|
this->AudioTickCallback(cycles_late);
|
||||||
|
@ -510,7 +510,7 @@ struct SharedMemory {
|
|||||||
ASSERT_DSP_STRUCT(SharedMemory, 0x8000);
|
ASSERT_DSP_STRUCT(SharedMemory, 0x8000);
|
||||||
|
|
||||||
union DspMemory {
|
union DspMemory {
|
||||||
std::array<u8, 0x80000> raw_memory;
|
std::array<u8, 0x80000> raw_memory{};
|
||||||
struct {
|
struct {
|
||||||
u8 unused_0[0x50000];
|
u8 unused_0[0x50000];
|
||||||
SharedMemory region_0;
|
SharedMemory region_0;
|
||||||
|
Loading…
Reference in New Issue
Block a user