I'm stuck, too. None of the IOS devices will talk to my M1 Mac
Post
Replies
Boosts
Views
Activity
Ooh! Just noticed that there is an update available for Mac, installing now.
Retested the AudioKit "Cookbook" app with Xcode Version 14.0.1 (14A400) and iOS 15.7 and 'defaultToSpeaker' is now working as expected.
Retested on my app and the mic is now working when 'defaultToSpeaker' is an option.
Also, the mode on the initial post as gameChat, but I had changed it back to default. This didn't affect the issue when I posted, but mode is default now and things are working.
To that end, it appears that this AVAudioSession init string is correct and some glitch worked itself out over the last month:
let audioSession: AVAudioSession = AVAudioSession.sharedInstance() try audioSession.setCategory(AVAudioSession.Category.playAndRecord, mode: AVAudioSession.Mode.default, options: [.defaultToSpeaker, .mixWithOthers]) try audioSession.setActive(true)
Nope, I was mistaken. My app still kills the mic if '.defaultToSpeaker' is used. Likely caused by mixing plugins, using one for mic capture and the other for midi playback. AudioKit Cookbook works as expected, so it doesn't appear to be an 'Apple' issue, it's an ID10T group effort problem.