GB Audio: Fix audio frame timer deserialization
Vicki Pfau vi@endrift.com
Mon, 13 Feb 2017 02:21:26 -0800
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/gb/audio.c
→
src/gb/audio.c
@@ -953,6 +953,9 @@ audio->playingCh3 = !!(*audio->nr52 & 0x0004);
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);