GBA: wahahaha

initializing after pushing
This commit is contained in:
tildearrow 2024-03-18 13:37:29 -05:00
parent b27d99b1b0
commit cb2aeb649f

View file

@ -501,6 +501,12 @@ int DivPlatformGBADMA::init(DivEngine* p, int channels, int sugRate, const DivCo
parent=p; parent=p;
dumpWrites=false; dumpWrites=false;
skipRegisterWrites=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++) { for (int i=0; i<2; i++) {
isMuted[i]=false; isMuted[i]=false;
oscBuf[i]=new DivDispatchOscBuffer; oscBuf[i]=new DivDispatchOscBuffer;
@ -510,12 +516,6 @@ int DivPlatformGBADMA::init(DivEngine* p, int channels, int sugRate, const DivCo
sampleMemLen=0; sampleMemLen=0;
romMemCompo=DivMemoryComposition(); romMemCompo=DivMemoryComposition();
romMemCompo.name="Sample ROM"; 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); setFlags(flags);
reset(); reset();
return 2; return 2;