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
1
vote
0 answers
What is the ID of the 'MessageReceived' sound on macOS?
I'm trying to use the 'ReceivedMessage' sound on macOS using AudioServicesPlaySystemSound() but I can't seem to find the ID anywhere.
What I've tried:
I've looked under…

cyril
- 3,020
- 6
- 36
- 61
1
vote
1 answer
How to imlement Audio Streaming <50 millisecond latency on iPhone
I need to implement audio streaming on iPhone with latency lower than 50 millisecond .
Any ideas on how I can make it work?
I bumped into:
http://cocoawithlove.com/2009/06/revisiting-old-post-streaming-and.html
But it's very important to me to know…

Oded Regev
- 4,065
- 2
- 38
- 50
1
vote
1 answer
endInterruption not being called evrytime
I am using openCL to play sounds and I have noted that the sounds stop functioning after a call enters and I press Decline.
I was able to trace it to the endInterruption not being called.
The problem is that this happens only about once out of 5…

Registered User
- 3,669
- 11
- 41
- 65
1
vote
0 answers
AUGraph Record and Play
When I use AUGraph to implemention record and play, I want to get audio data through RenderCallback.There is a problem in remote io unit callback with error kAudioConverterErr_InvalidInputSize(1768846202),I don't know how to solve it.
Is there any…

joy-711
- 11
- 2
1
vote
0 answers
Which ALAC encoder should I use with ffmpeg ? (alac, alac_at)
I'm encoding audio files from AIFC to ALAC using ffmpeg, I noticed that ffmpeg provides two different encoders for this purpose, named alac and alac_at:
$ ffmpeg -encoders
...
A..... alac ALAC (Apple Lossless Audio Codec)
A....D…

Julien Dargelos
- 356
- 1
- 12
1
vote
1 answer
Why did AudioQueueAllocateBuffer fail?
Device: iPhone X
System: OS 15.1
I came across an error when using AudioQueue to play some data. The error is returned by this API and its value is -308.
OSStatus status = AudioQueueAllocateBuffer(_audioQueue, MIN_SIZE_PER_FRAME,…

user4272677
- 73
- 4
1
vote
2 answers
How to create AVAudioPCMBuffer with CMSampleBuffer?
I have An AVAsset and I use AVAssetReaderAudioMixOutput to get CMSampleBuffer,and I want to use this CMSampleBuffer to create the AVAudioPlayerNode to scheduleBuffer
How to do it,anyone help?

luckysmg
- 187
- 1
- 9
1
vote
1 answer
How to set ratio / knee on Dynamic Processor Audio Unit
I struggle to understand all params of Apple's Dynamic Processor Audio Unit (kAudioUnitSubType_DynamicsProcessor).
In most Audio Editing apps (Garage Band etc), Compressor (aka Dynamic Processor) has a "ratio" and "knee" knob.
There is no 'knee'…

msmialko
- 1,439
- 2
- 20
- 35
1
vote
1 answer
Why can't I create an AVAudioFile on Mac Catalyst? (error -54)
My app lets users select an audio recording from their iTunes media library, then saves the media ID for later playback. From the media ID, I can use MPMediaQuery to get an MPMediaItem, then get the recording URL:
let recordingURL =…

arlomedia
- 8,534
- 5
- 60
- 108
1
vote
0 answers
system sound services works on simulator but not on the iPad
- (void)viewDidLoad {
SystemSoundID ReelStopSound;
NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"spin" ofType:@"mp3" ];
CFURLRef soundURL = (CFURLRef)[NSURL fileURLWithPath:soundPath];
AudioServicesCreateSystemSoundID(soundURL,…

Yadnesh
- 1,307
- 3
- 17
- 36
1
vote
1 answer
AudioToolBox AudioConverterFillComplexBuffer implementation file is not present
I am using realtime audio rendering with Audio Unit RemoteIO and I need to do sample rate conversions to ensure that my rendering is the same sample rate as hardware specification. Eg. in iPhone 12 sample rate is 48khz but in iPhone 8 its…

cs guy
- 926
- 2
- 13
- 33
1
vote
1 answer
AudioToolbox ExtAudioFileSeek(_:_:) does not directly set the desired frame position
I am working on an iOS MPEG-DASH player and I have an issue with seeking feature.
ExtAudioFileSeek(::) documentation said
Sets the file’s read position to the specified sample frame number. A subsequent call to the ExtAudioFileRead(::_:) function…

Renaud Codarini
- 11
- 1
1
vote
1 answer
Decode aac raw data and get the length of CPE/SCE
I have some aac raw data from an mp4 file which does not have moov header. I want to know the number of samples in this data and size of each sample. I have the decoder specific info as well.
After searching I have found out that aac samples in m4…

Mohammad Azam
- 71
- 1
- 7
1
vote
1 answer
iOS: Is this an audio-session simulator bug? keywords: kAudioSessionProperty_AudioRoute kAudioSessionUnsupportedPropertyError
can someone confirm whether this is indeed a bug? ( If so I will go off and file it with Apple ).
attempting to fetch kAudioSessionProperty_AudioRoute is returning error code kAudioSessionUnsupportedPropertyError on any version of the simulator…

P i
- 29,020
- 36
- 159
- 267
1
vote
1 answer
AudioQueue doesn't produce any sound. What the problem can be?
I've written a small c++ app for testing AudioToolbox Queue. I am filling the buffer with some random data just to check it works.
static void HandleOutputBuffer(void* inUserData, AudioQueueRef queue, AudioQueueBufferRef inBuffer) {
…

Semyon Tikhonenko
- 3,872
- 6
- 36
- 61