Category "avaudiosession"

Core Haptics not playing in iOS 15 with certain AVAudioSession configurations

I'm using Core Haptics to play a custom "heart beat" pattern, while simultaneously playing music using AVAudioPlayer. Specifically, I'm creating a simple CHHapt

Error Domain=NSOSStatusErrorDomain Code=560030580 "The operation couldn’t be completed. (OSStatus error 560030580.)"

I was using AVPlayer to play online mp3 stream ! When I pause the player [AVPlayer pause]; AVAudioSession *session = [AVAudioSession sharedInstance]; session

Mic input through headphones and output to iPhone speakers

Is there any way yet of being able to use wired headphones' mic as input and iPhone speakers as output using the high level AVFoundation framework: AVAudioSessi