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
2
votes
1 answer
Joining two CAF files together
I have the simple problem here. I have two CAF files. All I want to do is to join them to be one long audio file.
I've tried to:
Use the NSData class and append the audio data of both files into one. Hasn't worked. I assume some file property is…

dineth
- 9,822
- 6
- 32
- 39
2
votes
1 answer
Is AUGraph being deprecated on iOS? If so, when?
I've heard rumblings that AUGraph is being deprecated on iOS, for example in this Twitter post:
@marcoarment Your comment on @atpfm about needing to rewrite your audio engine: b/c of the looming AUGraph deprecation, or something else?
Is AUGraph…

Luke
- 7,110
- 6
- 45
- 74
2
votes
0 answers
AudioConverterFillComplexBuffer returns 1852797029 (kAudioCodecIllegalOperationError)
I'm trying to decode aac data with AudioToolbox in iOS environment. I consulted this thread.
'AudioConverterNew' function call succeed but AudioConverterFillComplexBuffer returns error code 1852797029, kAudioCodecIllegalOperationError.
I'm trying to…

In-sang Ryu
- 21
- 2
2
votes
1 answer
Swift 3 LPCM Audio Recorder | Error: kAudioFileInvalidPacketOffsetError
The below recorder works only the first time, if you tried recording a second time it gives the error 'kAudioFileInvalidPacketOffsetError' when trying to AudioFileWritePackets.
Any idea why this is happening?
Thank you in advance
Repository located…

LuAndre
- 1,114
- 12
- 23
2
votes
1 answer
using remoteio together with AudioServicesPlaySystemSound
we are trying to use remoteio for audio recording in conjunction
with the AudioServicesPlaySystemSound function for audio playback. the problem is that whenever remoteio is running the playback volume drops
significantly. it seems like if some final…

Peter
- 533
- 1
- 6
- 17
2
votes
0 answers
How to apply iPodEQ effect to single audio input unit on ios
I Tried to implement a audio player which fetches music from library and can apply EQ settings by the user in the app. After referring the following links I came to know that we can implement it using audio units only. I started reading the basics…

Raghavandra Santosh
- 181
- 10
2
votes
1 answer
UIAnimations in response to MIDI events in Swift
I am trying to program a MIDI sequence using Apple's AudioToolbox framework that triggers animations in the UI. I've been successful in creating the sequence thanks to Gene De Lisa's blog which I won't replicate here in its entirety due to the…

derekFairholm
- 285
- 1
- 14
2
votes
2 answers
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
I'm working on a Custom Alarm App and want to use Vibration in my App as soon as the alarm plays and I have used AudioToolbox and used this below code:
AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
and it worked but i want to…

Jatin Vashisht
- 157
- 11
2
votes
1 answer
Play sound when device is in silent mode in ios 8 and later
As per my title, i am searching any code for playing sound when my device is in silent mode. I am searching from 3days but in ios 8 and later no code is working for silent mode.
Any help would be appreciated. Please pass me any suggestion and advice…

Abha
- 1,032
- 1
- 13
- 36
2
votes
1 answer
Translate Objective - C Introduction to AudioUnits into Swift
I alredy managed to translate this code so the render callback gets called:
http://www.cocoawithlove.com/2010/10/ios-tone-generator-introduction-to.html
I'm sure that my render callback method is not right implemented, because I either get no sound…

easysaesch
- 159
- 1
- 14
2
votes
1 answer
iOS AudioToolbox crashes
I've some crashes in my application in AudioToolbox (AURemoteIO::IOThread), I don't know how to reproduce this crashes, but I have logs from Fabric. Maybe someone is faced with this issue, please help.
Thread : Crashed: AURemoteIO::IOThread
0 …

Maksym Bilan
- 197
- 1
- 10
2
votes
1 answer
how to get the AudioToolbox MusicTrack to loop in iOS 9.0?
this code works fine for looping a MusicTrack in iOS 8.4, but will halt the app under iOS 9.0 when setting the sequence with MusicPlayerSetSequence
var loopInfo = MusicTrackLoopInfo(loopDuration: 1.0,numberOfLoops: 0)
…

inatreecrown
- 81
- 6
2
votes
1 answer
I am stuck between either a memory leak or excessive static in Audio while capturing audio from microphone
I am writing an iPhone app where I need to capture audio from the mic and stream the it to a streaming server in AAC format. So I first capture the audio and then use the
AudioConverterFillComplexBuffer
method for converting the audio to AAC.…

ozguronur
- 1,223
- 1
- 8
- 7
2
votes
0 answers
Listen for OS X system volume changes using AudioHardwareServiceAddPropertyListener
In my app I need to be able to listen for system volume changes in OS X. Looking through the AudioToolbox library it seems like what I want is AudioHardwareServiceAddPropertyListener. I tried setting up the listener with the following code:
//…

Brian Sherman
- 35
- 5
2
votes
2 answers
How do I write this objective-c code snippet into Swift?
This is a couple lines of code taken pretty much verbatim from the GBA4iOS controller view that changes the length of a vibration:
void AudioServicesStopSystemSound(int);
void AudioServicesPlaySystemSoundWithVibration(int, id, NSDictionary…

Frank
- 21
- 1