# ZoomSDKAudioSetting microhpone not turning off when released

**URL:** <https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015>\
**Category:** macOS\
**Created:** [May 25, 2020, 11:52pm UTC](https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015 "2020-05-25T23:52:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![timazed](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@timazed](https://devforum.zoom.us/u/timazed)\
**Post date:** [May 25, 2020, 11:52pm UTC](https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015/1 "2020-05-25T23:52:51Z")

</div>

**Description**  
ZoomSDKAudioSetting never turns off the microphone when released. This happens in the ZoomSample macos app.

[\_audioSettings getAudioDeviceList:YES] activates the mic but there is no option to turn it off in the SDK. I’m assuming the ZoomSDK retains a reference to the ZoomSDKSettingService that looks to retain the ZoomSDKAudioSettings so this never gets cleaned up.

**Which version?**  
4.6.21666.0427  
XCode 10.3

**To Reproduce(If applicable)**

1. Start the sample app on the sdk.
2. use custom UI.
3. Once logged in go to settings.
4. Close the settings never deactivates the microphone. You can notice this when wearing headphones that turn on ambient sound while the microphone is active.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 28, 2020, 4:36am UTC](https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015/2 "2020-05-28T04:36:52Z")

</div>

Hi @timazed,

Thanks for the post. Are you using the interfaces that check the recording mic? If you are using the following interfaces:

 ![D349AD46-FDAB-40E9-88BA-C1B96035A044](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a76dc474e6c0d3130314729c83bd4f1216c2c93a.jpeg)

You must use these interfaces in the following order:

1. startRecordingMic
2. stopRecordingMic
3. playRecordingMic
4. stopPlayRecordingMic

Otherwise, it is likely to get the error you are getting right now.

Thanks!

---

<div class="post-metadata">

**Author:** ![timazed](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@timazed](https://devforum.zoom.us/u/timazed)\
**Post date:** [May 28, 2020, 4:49am UTC](https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015/3 "2020-05-28T04:49:37Z")

</div>

Hi @carson.zoom

The error occurs even if you don’t call any of those methods. The mic activates the moment you call `[_audioSettings getAudioDeviceList:YES]`

Cheers,  
Tima

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 2, 2020, 5:57am UTC](https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015/4 "2020-06-02T05:57:03Z")

</div>

Hi Tima,

Thanks for the reply. We have tried to reproduce this with our demo but no luck. Please refer to the following steps/orders when opening the setting UI:

1. startRecordingMic
2. stopRecordingMic
3. playRecordingMic
4. stopPlayRecordingMic

If you are following the order and the error still occurs, could you provide an SDK log(~/Library/Logs/AppName) for us to further investigate? Could you also provide a short video showing this issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![timazed](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@timazed](https://devforum.zoom.us/u/timazed)\
**Post date:** [June 2, 2020, 8:06am UTC](https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015/5 "2020-06-02T08:06:12Z")

</div>

Hi Carson,

I will see if i can capture something that shows you that the microphone isn’t being turned off.

Like i said previously this happens without even calling the start/stop/play/stopplay apis. It’s the moment the audiosettings fetches the microphone device.

I noticed it because i have headphones that turn on ambient sound when the mic is active. I tested the default settings and the system preference they all behave as expected. In call experience also behaves as expected. Its just the implementation of the preference in the demo. I tracked it down to that line of code.

But I will see if I can find something that will help your developers.

Cheers,  
Tima

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 3, 2020, 10:10am UTC](https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015/6 "2020-06-03T10:10:08Z")

</div>

Hi Tima,

Thank you very much. Any additional information will be very helpful. Looking forward to hearing from you and we will continue investigating this.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:49pm UTC](https://devforum.zoom.us/t/zoomsdkaudiosetting-microhpone-not-turning-off-when-released/19015/7 "2020-08-21T21:49:07Z")

</div>

Closed on August 21, 2020, 9:49pm UTC


