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
1
vote
1 answer

iOS gamekit, card game players, & GKVoiceChatService

I'm working on a card game for iOS. I'm thinking game center integration is something I want to be leaning towards, but in terms of a card game, I'm not exactly sure what that would entail for the individual players. From the Apple class reference,…
Slayer0248
  • 1,231
  • 3
  • 15
  • 26
1
vote
2 answers

headphone plug-in plug-out event when audio route doesn't change - iOS

I'm working on iPad. I would like to detect when user plug-out headphone. First I used a listener on the property kAudioSessionProperty_AudioRouteChange. So all was working well until I've decided to add a button to switch to speakers when headphone…
Cyril
  • 31
  • 1
  • 6
0
votes
1 answer

How do I call mpmovieplayer from applicationwillresignactive in ppdelegate?

I'm using mpmovieplayer to play an audio stream. I'm having trouble with handling intruptions e.g when a call is received. My player is declared in viewcontroller and I beleive I need to do something in applicationdidresignactive in my appdelegate…
ss30
  • 1
  • 2
0
votes
0 answers

iOS can't get audio focus when app in background

I am wondering if it's possible to obtain audio focus when the app is in the background without using the duckOthers option. I tested the Amazon Echo buds with the Alexa app and found that it can obtain audio focus. I am curious about how this is…
Cindy
  • 275
  • 4
  • 18
0
votes
0 answers

Swift and CarPlay audio streaming

General question: Working on an app that streams high-quality audio as well as listens for voice prompts from the user. This is an integral part of the app. The audio quality when using headphones (wired and BlueTooth) is great, but when using in…
TheTwoNotes
  • 453
  • 3
  • 15
0
votes
1 answer

Disable input/output AGC from RemoteIO and VPIO on iOS

CoreAudio is always a mystery due to lack of documentations. Recently I hit some stone again: In my program, I invoke RemoteIO and VoiceProcessingIO (VPIO) back and forth, and also change AVAudiosession in between. I tried to turn off AGC on VPIO…
Kitetaka
  • 527
  • 4
  • 20
0
votes
1 answer

Playing audio while record will get a low volume

I use audiounit to record the voice and use audioqueue to play the audio data. When I set: [session setCategory:AVAudioSessionCategoryPlayAndRecord error:&error]; The volume of played audio will be very low. But when I set: [session…
Between
  • 15
  • 4
0
votes
1 answer

How to stop (or pause) the device's audio in Swift?

I am making a music timer which will stop music (playing from Spotify, Apple Music, etc.) after an entered time. Is there a way to stop that audio session or pause the audio which is being played from another app from my app? Since I don't have a…
Giorgio
  • 103
  • 1
  • 1
  • 11
0
votes
1 answer

iPhone setting sound volume for playing sounds for app only

i currently wonder how to a) Play a sound next to iPod/Other music sources b) beeing able to control the volume of that played sound (only) c) **important** both combined!! d) all of it also on background/mt I am able to do both sepperate by using…
thedanielhanke
  • 730
  • 1
  • 6
  • 22
0
votes
1 answer

setPreferredInput WithBlueTooth not working

I'm trying to set bluetooth device into preferinput in audioSession. Here is my code: if(speaker) { NSLog(@"Audio use speaker"); CGFloat set = 5.0f; AudioQueueSetParameter(audioQueue, kAudioQueueParam_Volume, set); [sessionInstance…
zm90125
  • 13
  • 4
0
votes
1 answer

Synchronize AudioUnit callback with NSOutputStream

I'm recording audio using an Audio Unit, then writing that data into an NSOutputStream which is part of a bound pair that I'm using to POST that data over HTTP. My problem is the audio unit recording callback and the NSOutputStream hasSpaceAvailable…
Roshan Krishnan
  • 187
  • 1
  • 3
  • 13
0
votes
0 answers

How do I read in from a mp3 file and display in a label?

I want to display a text information on UILabel when my mp3 file is playing. It is like song lyrics, so is there any framework or APIs which help me to achieve this? Please help me if any one have an idea on this. Thank you in advance.
sohil
  • 818
  • 2
  • 15
  • 38
0
votes
0 answers

iOS - Generate tone at specific frequency and volume

I have to make ear testing app like Audiogram. I have to calibrate headphone at specific frequency and volume. I have to generate beep tone at specific frequency and volume and output volume of sound should be same of headphone. Could you please…
0
votes
1 answer

iOS 9.1 AudioQueueAllocateBuffer requesting a fix buffer size, it returns a smaller one

In the new iOS 9.1 when sets the AudioSession requesting a fix buffer size, the OS returns a smaller buffer. Why does that happen?? In the early versions <9.1 it worked as a charm // Create a new audio input queue OSStatus result =…
Loebre
  • 615
  • 2
  • 8
  • 23
0
votes
1 answer

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…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260