fm2612: fixed missing dac channel on savestate load [dink (FB Alpha project)]

This commit is contained in:
David Haywood 2014-07-31 10:51:53 +00:00
parent 16193b5d26
commit a1113e517d

View File

@ -24,6 +24,10 @@
** **
** CHANGELOG: ** CHANGELOG:
** **
** 07-30-2014 dink (FB Alpha project):
** - fixed missing dac channel on savestate load
**
** xx-xx-xxxx
** - fixed LFO implementation: ** - fixed LFO implementation:
** .added support for CH3 special mode: fixes various sound effects (birds in Warlock, bug sound in Aladdin...) ** .added support for CH3 special mode: fixes various sound effects (birds in Warlock, bug sound in Aladdin...)
** .inverted LFO AM waveform: fixes Spider-Man & Venom : Separation Anxiety (intro), California Games (surfing event) ** .inverted LFO AM waveform: fixes Spider-Man & Venom : Separation Anxiety (intro), California Games (surfing event)
@ -2323,7 +2327,7 @@ void ym2612_postload(void *chip)
/* DAC data & port */ /* DAC data & port */
F2612->dacout = ((int)F2612->REGS[0x2a] - 0x80) << 6; /* level unknown */ F2612->dacout = ((int)F2612->REGS[0x2a] - 0x80) << 6; /* level unknown */
F2612->dacen = F2612->REGS[0x2d] & 0x80; F2612->dacen = F2612->REGS[0x2b] & 0x80;
/* OPN registers */ /* OPN registers */
/* DT / MULTI , TL , KS / AR , AMON / DR , SR , SL / RR , SSG-EG */ /* DT / MULTI , TL , KS / AR , AMON / DR , SR , SL / RR , SSG-EG */
for(r=0x30;r<0x9e;r++) for(r=0x30;r<0x9e;r++)