uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 2b536a7a8e15b7b4b3bff1e03ee0eefad7de92d5
parent f90a97386c091162f2823f5a7ad4c375efd64796
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Mon, 26 Apr 2021 22:13:10 +0100

Minor fix

Diffstat:
Msrc/emulator.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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;