git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 8ad08c1b35a6f03462803b2a6c12eae716b02274
parent 301c0f41c229e9d498d6b9a30ee02a495944fde3
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Mon,  1 Feb 2021 23:11:42 +0200

Fix more audio deadlocks

Diffstat:
MCocoa/Document.m3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -381,7 +381,7 @@ static void infraredStateChanged(GB_gameboy_t *gb, bool on) [audioLock wait]; } - if (stopping) { + if (stopping || GB_debugger_is_stopped(&gb)) { memset(buffer, 0, nFrames * sizeof(*buffer)); [audioLock unlock]; return; @@ -1105,6 +1105,7 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) - (char *) getDebuggerInput { + [audioLock signal]; [self updateSideView]; [self log:">"]; in_sync_input = true;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.