The Audio Toolbox framework provides interfaces for recording, playback, and stream parsing. In iOS, the framework provides additional interfaces for managing audio sessions.
Questions tagged [audiotoolbox]
366 questions
4
votes
0 answers
Client not playing from streaming data in iOS
Using Below code server start recording and start streaming to connected client and its working good.
AudioServer.h
#import
#import
#import "GCDAsyncSocket.h"
#import…

Pratik Prajapati
- 1,137
- 1
- 13
- 26
4
votes
2 answers
iOS: Airplay picker MPVolumeView alternative
I'm using MPVolumeView to pick airplay device for avplayer airplay playback.
Is there any possible non-private API alternative for doing this, so I would be able to provide my own UI Controls for picking airplay device?
By referring to the API, I…

ambientlight
- 7,212
- 3
- 49
- 61
4
votes
1 answer
How to increase volume of a sound and remove background noise in objective c
I have recorded a sound using AVFoundation Framework. It plays well but it contains a lot of surrounding noise.
I need to remove this noise and also amplify the sound to increase the volume.
Can anybody please help with some sample code. Or please…

Jassi
- 537
- 8
- 21
4
votes
0 answers
How to fix MP3AudioStream error?
I'm getting the following error randomly (and sometimes consistently on launch). It can happen when there are background threads and when there aren't and it seems to be a problem with the library so I'm having trouble tracking down the problem in…

Kudit
- 4,212
- 2
- 26
- 32
4
votes
1 answer
How can I stop AudioToolbox sound?
I have two different button press sound actions. When I press one button it should play one sound, when I press the other, it should stop the first sound and play the other, How can I do this?
Thanks,
-(void) onButtonPressAlbina {
[soundID2…

Mihai
- 131
- 1
- 1
- 10
4
votes
1 answer
2 errors when calling AudioServicesPlaySystemSound?
I'm making an app which vibrates once a timer reaches a certain limit.
However, when calling
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
Xcode comes up with two errors:
Undefined symbols for architecture i386:
…

n30ncitylights
- 43
- 1
- 4
4
votes
2 answers
AudioServices.h not found in objective-C iOS project that includes AudioToolbox framework
According to the apple documentation, AudioServices.h should be part of the AudioToolbox framework.
Even though I have added the AudioToolbox framework to my Xcode project, when I #import AudioServices I get the error: AudioServices.h file not…

Jeanne
- 87
- 1
- 8
3
votes
1 answer
AudioToolback Crash Introduced in iOS 14.2
I am experiencing a very consistent crash in my app that was introduced with iOS 14.2. We are using Crashlytics to track crashes and can confirm 100% of these new crashes are on 14.2 and above. I have also been able to recreate on 14.2 and the…

MillerMedia
- 3,651
- 17
- 71
- 150
3
votes
1 answer
iOS - AudioToolbox Memory leak
I want to implement an audio manager. But I got a memory leak.
I don't know why & what happen. Could someone help me?
I create a button, the button event just runs the playAudio with audio path. Then, I click the button, click, click, click, ...,…

Phineas Huang
- 813
- 7
- 19
3
votes
2 answers
memory leak in AudioToolbox library AVAudioPlayer
Is there a memory lead issue with the AVAudioPlayer object? I'm getting a memory leak when using AVAudioPlayer in the simulator. It doesn't matter how I created the AVAudioPlayer. I've used initWithContentsOfURL and InitWithData. Below is a snippet…

docchang
- 1,115
- 15
- 32
3
votes
1 answer
Stopping and Quickly Replaying an AudioQueue
I've got an audio queue that I've got playing, stopping, pausing correctly but I'm finding the AudioQueueStop() function to be taking a long time to execute.
I'd like to immediately stop and then restart playing an audio queue and was wondering what…

djdrzzy
- 603
- 4
- 17
3
votes
1 answer
What is the difference between AUAudioUnit and AudioUnit
I saw the WDC 2016 conference about Core Audio and starting at 29min Doug Wyatt talk about real time audio. Since I'm developing an audio app with high performance I need to do that.
However I noticed that he used AUAudioUnit but in my application…

DEADBEEF
- 1,930
- 2
- 17
- 32
3
votes
1 answer
Obtain a for Audio Queue Buffer
I'm attempting to create a continuous FIFO audio recorder in Swift. I'm running into and issue while trying to create the audioQueueCallback.
From the docs AudioTimeStamp has this init method:
AudioTimeStamp(mSampleTime: Float64, mHostTime: UInt64,…

aBikis
- 323
- 4
- 16
3
votes
1 answer
iOS convert audio sample rate from 16 kHz to 8 kHz
I tried to convert PCM audio from 16kHz to 8kHz, just sample rate, no format change, the flow looks simple but I kept getting kAudioConverterErr_InvalidInputSize ("insz") from calling AudioConverterFillComplexBuffer. My input audio sample size is…

Elvin
- 1,133
- 6
- 15
3
votes
0 answers
iOS get audio power at arbitrary time
i'm trying to process audio iOS.
When play audio in realtime, i can use AVAudioPlayer, and get audio power (dB) by function: averagePowerForChannel.
But there is a case where i need to get audio power at arbitrary time: In my Video editor…

Bang Nguyen
- 31
- 1