NES: retrigger if sweep is on
This commit is contained in:
parent
4fab971b7d
commit
762f9f28db
|
@ -332,6 +332,10 @@ void DivPlatformNES::tick(bool sysTick) {
|
||||||
if (chan[i].freq<0) chan[i].freq=0;
|
if (chan[i].freq<0) chan[i].freq=0;
|
||||||
}
|
}
|
||||||
if (chan[i].keyOn) {
|
if (chan[i].keyOn) {
|
||||||
|
// retrigger if sweep is on
|
||||||
|
if (chan[i].sweep!=0x08) {
|
||||||
|
chan[i].prevFreq=-1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (chan[i].keyOff) {
|
if (chan[i].keyOff) {
|
||||||
//rWrite(16+i*5+2,8);
|
//rWrite(16+i*5+2,8);
|
||||||
|
|
Loading…
Reference in a new issue