From fa5420136e9c68680925f36e6c08978862647e1d Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 25 Feb 2021 15:43:52 +0200 Subject: [PATCH] I hate the audio thread --- Cocoa/Document.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cocoa/Document.m b/Cocoa/Document.m index d8b48e9..fa589a6 100644 --- a/Cocoa/Document.m +++ b/Cocoa/Document.m @@ -1105,7 +1105,9 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) - (char *) getDebuggerInput { + [audioLock lock]; [audioLock signal]; + [audioLock unlock]; [self updateSideView]; [self log:">"]; in_sync_input = true;