mirror of https://github.com/mgba-emu/mgba.git
GB Audio: Fix incorrect channel 4 iteration
This commit is contained in:
parent
539e63d49b
commit
480dc0f97e
1
CHANGES
1
CHANGES
|
@ -174,6 +174,7 @@ Bugfixes:
|
||||||
- Qt: Fix patch loading while a game is running
|
- Qt: Fix patch loading while a game is running
|
||||||
- Qt: Fix shader selector on Ubuntu (fixes mgba.io/i/767)
|
- Qt: Fix shader selector on Ubuntu (fixes mgba.io/i/767)
|
||||||
- GB Serialize: Fix timer serialization
|
- GB Serialize: Fix timer serialization
|
||||||
|
- GB Audio: Fix incorrect channel 4 iteration
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Add language selector
|
- Qt: Add language selector
|
||||||
- GBA Timer: Improve accuracy of timers
|
- GBA Timer: Improve accuracy of timers
|
||||||
|
|
|
@ -894,7 +894,7 @@ static void _updateChannel4(struct mTiming* timing, void* user, uint32_t cyclesL
|
||||||
ch->lfsr >>= 1;
|
ch->lfsr >>= 1;
|
||||||
ch->lfsr ^= (lsb * 0x60) << (ch->power ? 0 : 8);
|
ch->lfsr ^= (lsb * 0x60) << (ch->power ? 0 : 8);
|
||||||
cycles += baseCycles;
|
cycles += baseCycles;
|
||||||
} while (cycles < audio->sampleInterval);
|
} while (cycles + baseCycles < audio->sampleInterval);
|
||||||
mTimingSchedule(timing, &audio->ch4Event, cycles - cyclesLate);
|
mTimingSchedule(timing, &audio->ch4Event, cycles - cyclesLate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue