mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-04 18:05:06 +01:00
tiny emulation speedup (restored)
This commit is contained in:
parent
414a53ca1f
commit
e774dc03ae
@ -221,8 +221,11 @@ void fm_restore(void)
|
||||
/* write FM chip */
|
||||
void fm_write(unsigned int cpu, unsigned int address, unsigned int data)
|
||||
{
|
||||
snd.fm.curStage = fm_sample_cnt(cpu);
|
||||
fm_update();
|
||||
if (address & 1)
|
||||
{
|
||||
snd.fm.curStage = fm_sample_cnt(cpu);
|
||||
fm_update();
|
||||
}
|
||||
_YM2612_Write(address & 3, data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user