Post

Replies

Boosts

Views

Activity

Reply to Using .mixWithOthers or . duckOthers when setting category of AVAudioSession.sharedInstance gives error in WatchOS10
I've updated the code as follows and it all works fine. Interestingly even though I haven't specified to mixWithOthers, it still does. Please note that for anyone trying to find options to set on the session.activate options parameter, there aren't any! All you can use is [] if #available(watchOS 10.0, *) { try session.setCategory(AVAudioSession.Category.playback, mode: .default, policy: .longFormAudio, options: []) session.activate(options:[]){ success, error in if (error != nil) { print ("Error in activating audio session") } else { if success { print ("Audio session successfully activated") } else { print ("Audio session not activated") } } }
Sep ’23
Reply to iOS 16.1 beta 5 AVAudioSession Error
I had a related problem - same line of AVAudioSession_iOS but with an error of "res!" - resource not avaiable. It was happening because I had already set the category on the shared instance of the AVAudioSession and called setActive(true) on it. Before iOS16 (well, watchOS9 in my case) it worked fine. Code had not changed for 2 years. Hope it helps.
Oct ’22
Reply to Unable to submit app for review
I just tried again and got the same error - but then I clicked off the new version to the old version, then came back to the new version and it appears that it actually did submit for review. I also got a notification on my phone (and an email) that the app status had changed to "waiting for review". This binary had issues yesterday, the screenshots disappeared and now this - I don't hold out much hope! 🤣🤣
Jan ’21