From cb2aeb649f817ba5d512c132a18e304010e6c291 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 18 Mar 2024 13:37:29 -0500 Subject: [PATCH] GBA: wahahaha initializing after pushing --- src/engine/platform/gbadma.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/platform/gbadma.cpp b/src/engine/platform/gbadma.cpp index 5010c5b56..ec0dab3b3 100644 --- a/src/engine/platform/gbadma.cpp +++ b/src/engine/platform/gbadma.cpp @@ -501,6 +501,12 @@ int DivPlatformGBADMA::init(DivEngine* p, int channels, int sugRate, const DivCo parent=p; dumpWrites=false; skipRegisterWrites=false; + wtMemCompo=DivMemoryComposition(); + wtMemCompo.name="Wavetable RAM"; + wtMemCompo.used=256*2; + wtMemCompo.capacity=256*2; + wtMemCompo.memory=(unsigned char*)wtMem; + wtMemCompo.waveformView=DIV_MEMORY_WAVE_8BIT_SIGNED; for (int i=0; i<2; i++) { isMuted[i]=false; oscBuf[i]=new DivDispatchOscBuffer; @@ -510,12 +516,6 @@ int DivPlatformGBADMA::init(DivEngine* p, int channels, int sugRate, const DivCo sampleMemLen=0; romMemCompo=DivMemoryComposition(); romMemCompo.name="Sample ROM"; - wtMemCompo=DivMemoryComposition(); - wtMemCompo.name="Wavetable RAM"; - wtMemCompo.used=256*2; - wtMemCompo.capacity=256*2; - wtMemCompo.memory=(unsigned char*)wtMem; - wtMemCompo.waveformView=DIV_MEMORY_WAVE_8BIT_SIGNED; setFlags(flags); reset(); return 2;