audiosession

Is AudioSession actually the same thing as OpenAL?

Is AudioSession actually the same thing as OpenAL? ...

What kind of routes could I get back from kAudioSessionProperty_AudioRoute property?

Apple guy tried to be funny and wrote in the docs: ("Headphone," "Speaker," etc.) What kind of return values are possible in reality? ...

How to listen to that property?

@constant kAudioSessionProperty_AudioInputAvailable A UInt32 with a value other than zero when audio input is available. Use this property, rather than the device model, to determine if audio input is available. A listener will notify you when audio input becomes availabl...

PlaySystemSound with mute switch on

I know, I have to set the AudioSession to the 'playback' category, which allows audio even when the mute switch is on. This is what I do, but sound still gets muted when switch is on. UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback; AudioSessionSetProperty(kAudioSessionProperty_AudioCategory,sizeof(sessionCategory), &sess...

AudioQueue code from SpeakHere fails on iPad.

I've using the SpeakHere audio classes in an App I'm creating that must Play & Record simultaneously. I'm using the newest SDK with a 3.2 device target in a universal app build (targeting iPad & iPhone). The app plays streaming movies using MPMoviePlayerController and Records audio simultaneously. This works 100% perfectly on an iPhon...

How do you use AVAudioPlayer to play music while in the background?

I currently use AVAudioPlayer to play music while in the foreground, but when I press the home button my application goes to the background and the music stops. I set the category for my AVAudioSession to AVAudioSessionCategoryPlayback and set active to YES. Additionally, I added the audio key to UIBackgroundModes in my Info.plist. Is...

building an echo sound application with iPhone

Hello, I would like to build an application which just echoes back the input given by the user. It simply talks back what is being recorded but at the same time. (out put the recording as soon as it is got). I have tried to look into the posts but there was no solution. I am using audiosessions and tried to follow this link http://blog.e...

Routing iPhone Audio Sound

I have an app which does listen and play sound at the same time. By default, the sound output goes through the earphone. So I use the following code to route it through the speaker: UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute, sizeof(audioRouteOve...

Is AVAudioSessionCategoryAmbient broken or is there something special...

Is there something extra that i need to do to get AVAudioSessionCategoryAmbient working? if i choose playback it works fine...which is fine, but i would rather allow background music. I didn't post code because it works perfectly well if i change my category, so what i really would like a list of the steps i need to take to make it work...

How do I handle other audio playing, in light of multitasking, in iOS?

In the Audio Session Cookbook there is a section on "Checking if Other Audio is Playing During App Launch". I'm using MonoTouch (but feel free to give an Objective-C answer, the API is the same), so the code from that document looks something like this: bool otherAudioPlaying = AudioSession.OtherAudioIsPlaying; if(otherAudioPlaying) ...