Top "Avaudiosession" questions

This class provides an Objective-C alternative to many features from the C-based Audio Session Services.

Low recording volume in combination with AVAudioSessionCategoryPlayAndRecord

When I set: [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayAndRecord error:NULL]; …recording and playing works fine, just the playback volume is around 60% …

audio ios avaudiosession
AVAudioSession Interruptions

So in my app, running on iOS 6, everything seems to work fine with audio. I use the old C API …

ios audio avaudiosession interruption
IOS: Play sound while app in background

I working on a little app where i want the phone to play a sound file on an event from …

iphone ios avaudioplayer avaudiosession
OSStatus NSOSStatusErrorDomain

I received the following error when I get the property using AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareSampleRate,&size, &myAudioDescription.mSampleRate) Error …

objective-c ios core-audio avaudiosession
Change lock screen background audio controls text?

I have an iOS app that streams background audio using AVAudioSession. It is working correctly, but I am curious, is …

ios objective-c swift avaudiosession mpnowplayinginfocenter
IOS: AVAudioSession not working

I am trying to use AVAudioSession, but it is throwing this runtime error: [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields:Unknown selected data …

ios swift avfoundation avaudiosession
how to show seek track duration on control center

How do i pass the song info such as song name and track duration to control center. Player plays music …

ios objective-c avaudioplayer avaudiosession control-center
AVAudioSession setCategory availability in Swift 4.2

After migrating to Swift 4.2, I am getting multiple errors, one of which is weird. It seems like a bug in …

swift xcode avaudiosession xcode10 swift4.2
iOS - AVAudioPlayer doesn't continue to next song while in background

So I have an app that plays a bunch of songs while the user can flip through a comic book. …

ios background touch avaudioplayer avaudiosession
AVSpeechSynthesizer error AudioSession

I'm playing around with AVSpeechSynthesizer and always getting these errors: ERROR: >aqsrv> 65: Exception caught in (null) - error …

ios objective-c avfoundation avaudiosession