mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
WonderSwan: fix build
This commit is contained in:
parent
0210548291
commit
09655f7d57
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ void DivPlatformSwan::tick() {
|
|||
if (chan[3].std.hadDuty) {
|
||||
noise=chan[3].std.duty;
|
||||
if (noise>0) {
|
||||
rWrite(0x0e,(noise-1)&0x07|0x18);
|
||||
rWrite(0x0e,((noise-1)&0x07)|0x18);
|
||||
sndCtrl|=0x80;
|
||||
} else {
|
||||
sndCtrl&=~0x80;
|
||||
|
@ -378,7 +378,7 @@ int DivPlatformSwan::dispatch(DivCommand c) {
|
|||
case DIV_CMD_STD_NOISE_MODE:
|
||||
if (c.chan==3) {
|
||||
noise=c.value&0xff;
|
||||
if (noise>0) rWrite(0x0e,(noise-1)&0x07|0x18);
|
||||
if (noise>0) rWrite(0x0e,((noise-1)&0x07)|0x18);
|
||||
}
|
||||
break;
|
||||
case DIV_CMD_SAMPLE_MODE:
|
||||
|
|
Loading…
Reference in a new issue