audiosession Questions

3

Solved

In my project, I use AVAudioSession to detect any headphone is plugged or unplugged. But in this case, I can't detect when bluetooth device is plugged. Here is my code for headphone state. - (voi...
Araarab asked 8/3, 2015 at 16:27

2

Solved

Just starting development for iOS 7, and found that AudioSession related functions and PropertyListeners are deprecated in iOS 7. Before I use the following method to detect if a headset has been...
Triplicate asked 29/10, 2013 at 5:42

3

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...
Snitch asked 4/10, 2011 at 8:34

3

Solved

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 audioRo...

5

I made a streaming music player and it works fine in the foreground. But in the background iOS4, it doesn't play the next song automatically. ( remote control works ) The reason is AudioQueueStart ...
Pianola asked 3/12, 2010 at 19:30

1

I am able to duck my background audio while playing new sounds. However I am unable to resume the background audio level to maximum again. When my delegate tries to "unduck" it just keeps bei...
Gild asked 7/12, 2013 at 11:12

4

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 fil...
Unaccountedfor asked 15/5, 2013 at 11:52

2

I have an audio app that uses the Media Playback audio session category to allow background audio. Once my audio session is initialized, the hardware volume buttons on the iOS device control the vo...
Kodok asked 20/11, 2011 at 17:26

2

Solved

I have several questions to the CoreAudio AudioSession framework related to several Bluetooth tasks and I hope someone can help me with these issues or at least can confirm my latest findings. The ...
Hurdygurdy asked 30/1, 2013 at 10:17

5

Solved

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 sess...
Pretrice asked 17/6, 2010 at 2:18

6

Solved

Apple guy tried to be funny and wrote in the docs: ("Headphone," "Speaker," etc.) What kind of return values are possible in reality?
Noonan asked 2/5, 2010 at 13:17

1

I'm developing an interactive storybook type application for the iPhone and I've recently encountered a frustrating bug concerning audio mixing on the device. Firstly, I setup an audio session. I ...
1

© 2022 - 2024 — McMap. All rights reserved.