Questions tagged [audiosession]

An audio session is a group of related audio streams.

An audio session contains either rendering streams or capture streams, but not both. By default, the volume and mute settings for a rendering session are persistent across system restarts. The volume and mute settings for a capture session are not persistent. A session that contains streams that operate in loopback mode is treated the same as a capture session.

86 questions
0
votes
1 answer

AudioSessionRemovePropertyListenerWithUserData deprecated

In an app of mine I have the following code: AudioSessionRemovePropertyListenerWithUserData(routeChangeID,cvcHandleRouteChange,(__bridge void *)(self)); I don’t see any problem with it, it has been working for a while and still works. But I now get…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

Iphone IOS, Accessing audio data from another audio session

I'm in the process of building an app that uses the IPod Library Access API, so that I can play songs from iTunes in the app. However I also need to access the audio data of whatever song is playing, like how a music visualizer would. So far,…
Qdot543
  • 51
  • 1
  • 8
0
votes
1 answer

IOS AVAudioSessionModeMeasurement error

Greeting. I am working on the app (IOS 7) that perform some audio management and want to disable all audio preprocessing. When I do NSError *err; [audioSession setCategory:AVAudioSessionCategoryRecord error:&err]; [audioSession…
szhernovoy
  • 31
  • 4
0
votes
1 answer

Deactivating avaudiosession after going back from videoviewcontroller

I am trying to play video in background everything works just fine and the video play and get pause normally in background.But the only problem is whenever I go back from the from my videoviewcontroller(the view on which is played to menu), the…
hariszaman
  • 8,202
  • 2
  • 40
  • 59
0
votes
1 answer

How can I cancel a [AVAudioSession sharedInstance];

Currently I have an audio session where I use audioSession = [AVAudioSession sharedInstance]; to override the ringer but I would like to know if there is a way that I can undo this so that my audio session will not be a shared instance.
JohnAnge Kernodle
  • 239
  • 1
  • 3
  • 20
0
votes
4 answers

AVAudioPlayer doesn't start playing in background

I am using AVAudioPlayer and NSFileHandle to do audio streaming. The basic idea is that I save the streaming audio data to the device with file system and then use AVAudioPlayer to playback the file just saved. AVAudioPlayer can still play that…
stspb
  • 193
  • 2
  • 12
0
votes
1 answer

audioSessionGetProperty doesn't work (iOS)

I am trying to detect the current volume, but the result is always 0. this is my codes: in the view controller.m import the AudioToolbox. in viewDidLoad method, AudioSessionInitialize(NULL, NULL, NULL, NULL); in viewDidLoad method, following…
user1470393
  • 317
  • 4
  • 12
0
votes
1 answer

Playing music while recording with no re-routing

I'm coding an app and I need to not interrupt any music the user is playing while the app is recording through the mic. However, if I use kAudioSessionProperty_OverrideAudioRoute with kAudioSessionOverrideAudioRoute_Speaker for my audio session…
Colin Cornaby
  • 741
  • 4
  • 14
0
votes
1 answer

AudioSessionInitialize with another interruption listener

I initialize audio session AudioSessionInitialize(NULL, NULL, rioInterruptionListener, self) with rioInterruptionListener. And I want to change interruption listener. If I use AudioSessionInitialize(NULL, NULL, anotherInteruptionListener, self), it…
Inspiration
  • 65
  • 1
  • 8
0
votes
2 answers

iOS AudioSessionInitialize Error

I'm writing an iPad app that uses an Audio Queue. I'm running into an error resulting from calling AudioSessionInitialize more than once. I'm trying to find a way to test whether or not AudioSessionInitialize has already been called to avoid this,…
cpunerd
  • 31
  • 3
1 2 3 4 5
6