Top "Avaudiosession" questions

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

iOS check if application has access to microphone

With the introduction of iOS 7, applications have to request microphone access when they want to record audio. How do I …

ios objective-c swift microphone avaudiosession
How to programmatically sense the iPhone mute switch?

I can't seem to find in the SDK how to programatically sense the mute button/switch on the iPhone. When …

ios audio avaudiosession
AVAudioSession setCategory Swift 4.2 iOS 12 - Play Sound on Silent

To play sound even on Silent mode I use to use below method. But how it's not working. // Works on …

ios swift avfoundation avaudiosession
How Do I Route Audio to Speaker without using AudioSessionSetProperty?

As AudioSessionSetProperty may become deprecated, I'm trying to find an code example of how to route audio to the speaker …

ios objective-c avaudiosession
Detecting active AVAudioSessions on iOS device

I'm trying to figure out if this is possible - my app activates an audio session that is initialized as: [[[…

ios objective-c cocoa-touch avaudiosession
Detecting the iPhone's Ring / Silent / Mute switch using AVAudioPlayer not working?

I've tried using these methods in an attempt to detect that the Ring/Silent switch is active or not: How …

iphone ios4 iphone-sdk-3.0 avaudioplayer avaudiosession
Are headphones plugged in? iOS7

Developing an app for an iPhone with audio files that need to be listened too through headphones. How do I …

ios ios7 avaudioplayer avaudiosession headphones
iOS8 AVAudioSession setActive error

I'm testing my app in XCode 6 and find an issue with AVAudioSession in iOS8. When I call [[AVAudioSession sharedInstance] setActive:…

avaudiosession ios8 xcode6
How to change an iOS device volume programmatically?

Is there a way to change the device volume programmatically? maybe using audio session?

ios objective-c avaudiosession
AVAudioSessionManager availableInputs "Unknown selected data source for port iPhone Microphone"

I've noticed this error in my console log for a while. Though it does not affect the execution of my …

ios iphone avaudiosession