Questions tagged [audiosessionservices]
7 questions
20
votes
3 answers
how to find out if audio session is active in iOS
I'm using AudioSessionSetActive(true) and AudioSessionSetActive(false) for setting the AudioSession to true or false in my iOS app.
At any point, I want to find out whether the session is active or not. Is there a way to do that?

Namratha
- 16,630
- 27
- 90
- 125
4
votes
2 answers
playing an audio file after a time delay
I have an audio file that I want to begin playing at a 20 second delay, after the user has seen some animations play etc...
Does anyone know how I might go about doing this? I have 5 animations that play, after which I would like audio file to…

hanumanDev
- 6,592
- 11
- 82
- 146
1
vote
1 answer
Do I own the object returned by AudioSessionGetProperty?
The method has "Get" in it's name and doesn't return something via return. It takes a pointer for example to a CFStringRef, like this:
CFStringRef outValue;
UInt32 propertySize = sizeof(outValue);
AudioSessionGetProperty(propertyID, &propertySize,…

openfrog
- 40,201
- 65
- 225
- 373
1
vote
0 answers
Is it possible to record the voice from Bluetooth headset and play on iPhone speaker simultaneously?
I am making an app that requires recording the voice coming from a Bluetooth headset and playing it on the iPhone speaker (not on Bluetooth headset speaker). I tried:
AVAudioSession* audioSession = [AVAudioSession sharedInstance];
[audioSession…

kamalesh kumar yadav
- 966
- 1
- 9
- 19
0
votes
2 answers
Objective C object not recognized in C function
I am adding an Audio session property listener for kAudioSessionProperty_AudioRouteChange and in the callback I want to call the takePicture function of UIImagePickerController. The problem is that I cannot access my picker in the callback.
I am…

Bushra Shahid
- 3,579
- 1
- 27
- 37
0
votes
1 answer
iPhone PlayAndRecord silences all system audio?
In my iPhone app I am trying to record audio and play iPod music at the same time, so I set the audio session category to kAudioSessionCategory_PlayAndRecord. But when I set this, all system audio (including vibrate) doesn't work anymore, although…

Eamon Ford
- 31
- 4
0
votes
1 answer
After interruption, delayed audio route change notifications when recording
My iPhone application requires that I know when a user has/has not plugged in her headphones. That's easy. AudioSessionAddPropertyListener with a callback listening to kAudioSessionProperty_AudioRouteChange.
I write logs with NSLog as things happen.…

Frank Shearar
- 17,012
- 8
- 67
- 94