mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-25 22:15:14 +00:00
SNES: move volume changes
make them happen after KOFF
This commit is contained in:
parent
9b1c06b515
commit
2d172c59af
1 changed files with 3 additions and 4 deletions
|
@ -259,7 +259,6 @@ void DivPlatformSNES::tick(bool sysTick) {
|
|||
if (antiClick) {
|
||||
for (int i=0; i<8; i++) {
|
||||
if (koff&(1<<i)) {
|
||||
logV("KOFF: %d",i);
|
||||
chWrite(i,5,0);
|
||||
chWrite(i,7,0x9f);
|
||||
chan[i].shallWriteEnv=true;
|
||||
|
@ -330,15 +329,15 @@ void DivPlatformSNES::tick(bool sysTick) {
|
|||
if (koff!=0) {
|
||||
rWriteDelay(0x5c,0,8);
|
||||
}
|
||||
if (kon!=0) {
|
||||
rWrite(0x4c,kon);
|
||||
}
|
||||
for (int i=0; i<8; i++) {
|
||||
if (chan[i].shallWriteVol) {
|
||||
writeOutVol(i);
|
||||
chan[i].shallWriteVol=false;
|
||||
}
|
||||
}
|
||||
if (kon!=0) {
|
||||
rWrite(0x4c,kon);
|
||||
}
|
||||
}
|
||||
|
||||
int DivPlatformSNES::dispatch(DivCommand c) {
|
||||
|
|
Loading…
Reference in a new issue