greatly improved playback resume

no more song weirding out when changing orders
This commit is contained in:
tildearrow 2021-12-21 01:29:07 -05:00
parent 84f36a8c66
commit 997c460fc1
24 changed files with 243 additions and 120 deletions

View file

@ -3,7 +3,7 @@
#include <math.h>
//#define rWrite(a,v) pendingWrites[a]=v;
#define rWrite(a,v) GB_apu_write(gb,a,v);
#define rWrite(a,v) if (!skipRegisterWrites) {GB_apu_write(gb,a,v);}
#define FREQ_BASE 8015.85f
@ -286,6 +286,14 @@ int DivPlatformGB::dispatch(DivCommand c) {
return 1;
}
void DivPlatformGB::forceIns() {
for (int i=0; i<4; i++) {
chan[i].insChanged=true;
}
GB_apu_write(gb,0x25,procMute());
updateWave();
}
void DivPlatformGB::reset() {
for (int i=0; i<4; i++) {
chan[i]=DivPlatformGB::Channel();