all repos — mgba @ 36553b89d0cb70174da4d386565892c288a0e6f6

mGBA Game Boy Advance Emulator

GB Audio: Fix audio frame timer deserialization
Vicki Pfau vi@endrift.com
Mon, 13 Feb 2017 02:21:26 -0800
commit

36553b89d0cb70174da4d386565892c288a0e6f6

parent

012f0a33296c79f1717c09c4d2e9cbc9957a85dc

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gb/audio.csrc/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);