mirror of https://github.com/mgba-emu/mgba.git
GB Audio: Fix audio frame timer deserialization
This commit is contained in:
parent
012f0a3329
commit
36553b89d0
|
@ -953,6 +953,9 @@ void GBAudioPSGDeserialize(struct GBAudio* audio, const struct GBSerializedPSGSt
|
|||
audio->playingCh4 = !!(*audio->nr52 & 0x0008);
|
||||
audio->enable = GBAudioEnableGetEnable(*audio->nr52);
|
||||
|
||||
LOAD_32LE(when, 0, &state->ch1.nextFrame);
|
||||
mTimingSchedule(audio->timing, &audio->frameEvent, when);
|
||||
|
||||
LOAD_32LE(flags, 0, flagsIn);
|
||||
LOAD_32LE(ch1Flags, 0, &state->ch1.envelope);
|
||||
audio->ch1.envelope.currentVolume = GBSerializedAudioFlagsGetCh1Volume(flags);
|
||||
|
|
Loading…
Reference in New Issue