GBA: wahahaha
initializing after pushing
This commit is contained in:
		
							parent
							
								
									b27d99b1b0
								
							
						
					
					
						commit
						cb2aeb649f
					
				|  | @ -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; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 tildearrow
						tildearrow