From 35a471e018e3ab950290a93aa62e6e255ba68694 Mon Sep 17 00:00:00 2001 From: torikizi Date: Fri, 22 Sep 2023 00:15:27 +0900 Subject: [PATCH] =?UTF-8?q?MacAudioOutputHelper=20=E3=81=A7=E3=82=B3?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E5=87=A6=E7=90=86=E3=82=92=E3=82=B3?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=A4=E3=83=B3=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mac/mac_audio_output_helper.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mac/mac_audio_output_helper.mm b/src/mac/mac_audio_output_helper.mm index 3bad0f78..065d37f5 100644 --- a/src/mac/mac_audio_output_helper.mm +++ b/src/mac/mac_audio_output_helper.mm @@ -108,9 +108,9 @@ - (void)audioSession:(RTC_OBJC_TYPE(RTCAudioSession) *)audioSession } MacAudioOutputHelper::~MacAudioOutputHelper() { - // あった方が良いと思ったが、 libwebrtc のサンプルにないので消しておく - // RTC_OBJC_TYPE(RTCAudioSession)* session = [RTC_OBJC_TYPE(RTCAudioSession) sharedInstance]; - // [session removeDelegate:adapter_]; + // libwebrtc のサンプルにないが、あった方が良いのでここで removeDelegate を呼ぶ + RTC_OBJC_TYPE(RTCAudioSession)* session = [RTC_OBJC_TYPE(RTCAudioSession) sharedInstance]; + [session removeDelegate:adapter_]; adapter_ = nil; }