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) {
|
if (antiClick) {
|
||||||
for (int i=0; i<8; i++) {
|
for (int i=0; i<8; i++) {
|
||||||
if (koff&(1<<i)) {
|
if (koff&(1<<i)) {
|
||||||
logV("KOFF: %d",i);
|
|
||||||
chWrite(i,5,0);
|
chWrite(i,5,0);
|
||||||
chWrite(i,7,0x9f);
|
chWrite(i,7,0x9f);
|
||||||
chan[i].shallWriteEnv=true;
|
chan[i].shallWriteEnv=true;
|
||||||
|
@ -330,15 +329,15 @@ void DivPlatformSNES::tick(bool sysTick) {
|
||||||
if (koff!=0) {
|
if (koff!=0) {
|
||||||
rWriteDelay(0x5c,0,8);
|
rWriteDelay(0x5c,0,8);
|
||||||
}
|
}
|
||||||
if (kon!=0) {
|
|
||||||
rWrite(0x4c,kon);
|
|
||||||
}
|
|
||||||
for (int i=0; i<8; i++) {
|
for (int i=0; i<8; i++) {
|
||||||
if (chan[i].shallWriteVol) {
|
if (chan[i].shallWriteVol) {
|
||||||
writeOutVol(i);
|
writeOutVol(i);
|
||||||
chan[i].shallWriteVol=false;
|
chan[i].shallWriteVol=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (kon!=0) {
|
||||||
|
rWrite(0x4c,kon);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int DivPlatformSNES::dispatch(DivCommand c) {
|
int DivPlatformSNES::dispatch(DivCommand c) {
|
||||||
|
|
Loading…
Reference in a new issue