Computer audio becomes distorted when playInputClick gets called from a simulator

Originator:BenWu00
Number:rdar://30742803 Date Originated:Feb 27, 2017
Status:Closed Resolved:Xcode 9
Product:iOS + SDK Product Version:Xcode 8.2 iOS 10.2 Simulator
Classification: Reproducible:Always
 
Area:
UIKit

Summary:
When I am running the iOS Simulator while using BlueTooth connected headphones (I believe a microphone is required), calling UIDevice.current.playInputClick() changes the audio in my headphones.

Steps to Reproduce:
1. Connect a BlueTooth headphone that has a microphone to your computer.  (Beats Solo3, Bose QC35, or Bose AE2 Soundlink will work)
2. Start audio from a source on the computer.  (e.g. iTunes)
3. Run the project
4. Click into the TextView
5. Tap the accessory view that will trigger UIDevice.current.playInputClick()

Expected Results:
I expect my audio to continue to play normally and for my microphone to not be turned on.

Actual Results:
Audio becomes distorted.  It seems like the headphones are going into a call mode or turning the microphone on.

Version:
10.12.2

Notes:
Xcode 8.2 (8C38)
iOS Simulator 10.2 (iPhone 7 Plus)

Configuration:
MacBook Pro (Retina, 15-inch, Mid 2015). Beats Solo3.

Attachments:
'TestInputClick.zip' was successfully uploaded.

==============

Further discussion: https://github.com/hackiftekhar/IQKeyboardManager/issues/770

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!