mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-01 00:43:02 +00:00
YM2612: #632
This commit is contained in:
parent
e226d09807
commit
05b5265bbb
1 changed files with 18 additions and 4 deletions
|
@ -279,12 +279,26 @@ void DivPlatformGenesis::tick(bool sysTick) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i>=5 && chan[i].furnaceDac) {
|
||||||
|
if (chan[i].std.panL.had) {
|
||||||
|
chan[5].pan&=1;
|
||||||
|
chan[5].pan|=chan[i].std.panL.val?2:0;
|
||||||
|
}
|
||||||
|
if (chan[i].std.panR.had) {
|
||||||
|
chan[5].pan&=2;
|
||||||
|
chan[5].pan|=chan[i].std.panR.val?1:0;
|
||||||
|
}
|
||||||
|
if (chan[i].std.panL.had || chan[i].std.panR.had) {
|
||||||
|
rWrite(chanOffs[5]+ADDR_LRAF,(IS_REALLY_MUTED(i)?0:(chan[5].pan<<6))|(chan[5].state.fms&7)|((chan[5].state.ams&3)<<4));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (chan[i].std.panL.had) {
|
if (chan[i].std.panL.had) {
|
||||||
chan[i].pan=chan[i].std.panL.val&3;
|
chan[i].pan=chan[i].std.panL.val&3;
|
||||||
if (i<6) {
|
if (i<6) {
|
||||||
rWrite(chanOffs[i]+ADDR_LRAF,(IS_REALLY_MUTED(i)?0:(chan[i].pan<<6))|(chan[i].state.fms&7)|((chan[i].state.ams&3)<<4));
|
rWrite(chanOffs[i]+ADDR_LRAF,(IS_REALLY_MUTED(i)?0:(chan[i].pan<<6))|(chan[i].state.fms&7)|((chan[i].state.ams&3)<<4));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (chan[i].std.pitch.had) {
|
if (chan[i].std.pitch.had) {
|
||||||
if (chan[i].std.pitch.mode) {
|
if (chan[i].std.pitch.mode) {
|
||||||
|
|
Loading…
Reference in a new issue