From d42c98b0c52653ea0a8cfeb0f16a1f0779c36ba3 Mon Sep 17 00:00:00 2001 From: shogo4405 Date: Fri, 12 Jul 2024 10:05:49 +0900 Subject: [PATCH] refs #1503 --- Sources/IO/IOStream.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/IO/IOStream.swift b/Sources/IO/IOStream.swift index a6a5ce8d5..b42eb43b8 100644 --- a/Sources/IO/IOStream.swift +++ b/Sources/IO/IOStream.swift @@ -185,10 +185,12 @@ open class IOStream: NSObject { /// Specifies the audio mixer settings. public var audioMixerSettings: IOAudioMixerSettings { get { - mixer.audioIO.mixerSettings + mixer.audioIO.lockQueue.sync { self.mixer.audioIO.mixerSettings } } set { - mixer.audioIO.mixerSettings = newValue + mixer.audioIO.lockQueue.async { + self.mixer.audioIO.mixerSettings = newValue + } } }