From 2b536a7a8e15b7b4b3bff1e03ee0eefad7de92d5 Mon Sep 17 00:00:00 2001 From: Andrew Alderwick Date: Mon, 26 Apr 2021 22:13:10 +0100 Subject: [PATCH] Minor fix --- src/emulator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/emulator.c b/src/emulator.c index 70cdc2e..439dd58 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -255,9 +255,8 @@ audio_talk(Device *d, Uint8 b0, Uint8 w) if(!w && b0 == 0x2) { d->dat[0x2] = apu_get_vu(c); } - if(w && b0 == 0xf) { + else if(w && b0 == 0xf) { SDL_LockAudioDevice(audio_id); - c->period -= (Sint16)mempeek16(d->dat, 0x0); c->len = mempeek16(d->dat, 0xa); c->addr = &d->mem[mempeek16(d->dat, 0xc)]; c->volume[0] = d->dat[0xe] >> 4;