git.y1.nz

SameBoy

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

commit 1b38e8c9321522d8211c834a548d55fb6e4c79cc
parent 52a4c09855ee45c6349af422d36cba3d9415e16a
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 25 Jun 2022 20:09:23 +0300

Prevent audio chuckling when an instance is debug-stopped

Diffstat:
MCocoa/Document.m7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -1362,6 +1362,10 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) - (char *) getDebuggerInput { + bool isPlaying = _audioClient.isPlaying; + if (isPlaying) { + [_audioClient stop]; + } [audioLock lock]; [audioLock signal]; [audioLock unlock]; @@ -1380,6 +1384,9 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) [self.debuggerSideView setString:@""]; } }); + if (isPlaying) { + [_audioClient start]; + } if ((id) input == [NSNull null]) { return NULL; }

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