Questions tagged [audiotoolbox]

The Audio Toolbox framework provides interfaces for recording, playback, and stream parsing. In iOS, the framework provides additional interfaces for managing audio sessions.

Audio Toolbox Framework Reference

366 questions
2
votes
1 answer

Digital Audio Workstation Architecture on iOS

I am developing an architecture for digital audio workstation that works on iOS (mainly, but trying to support OS X too). I'm going slowly through miles of documentation by Apple and references of their frameworks. I have experience with DSP, but…
Legoless
  • 10,942
  • 7
  • 48
  • 68
2
votes
0 answers

AUGraph with sampler causing a memory leak

I'm not able to initialize and unitialize an audio graph with sampler without a memory leak. I tried to reduce the amount of code in my example, so the following example doesn't even start/stop the graph. So the code below doesn't really do anything…
2
votes
3 answers

ExtAudioFileOpenURL leak

I am opening an audio file to read it and I get an abandoned malloc block from this caller each time. In a loop I set data like this (which is marked as the memory usage in instruments as 99.7%) data = (short*)malloc(kSegmentSize*sizeof(short)); and…
some_id
  • 29,466
  • 62
  • 182
  • 304
2
votes
1 answer

AUSampler Audio Drop-out

I am developing an iPad application that uses the AUSampler AudioUnit, in conjunction with other AudioUnits, to play audio. The AUSampler loads a preset from a SoundFont2 file. When too many notes are played at once or notes are played too quickly,…
Jayson
  • 1,689
  • 14
  • 26
2
votes
2 answers

Audio Playback Not Working (AudioToolbox/AudioServices) - iPad 3

I have a short method which plays an audio notification using the AudioToolbox/AudioServices library (i've removed most of the functional code for brevity): - (IBAction)thatWasEasy:(id)sender { NSBundle *mainBundle = [NSBundle mainBundle]; …
ninehundreds
  • 1,097
  • 2
  • 21
  • 43
2
votes
0 answers

Get album artwork from an MP3 file on iOS

I'm trying to grab the album artwork from an mp3 file which the user adds into the application. This is the code I am using. NSURL * fileURL=[NSURL fileURLWithPath:filePath]; NSString *fileExtension = [[fileURL path] pathExtension]; if…
Jonah Siegle
  • 31
  • 1
  • 3
2
votes
1 answer

Saving MusicSequence to .mid file using MusicSequenceFileCreate()

I'm currently developing an app that needs to create a MusicSequence based on user input, and I'm currently getting a -1 error on MusicSequenceFileCreate(). And -1 isn't listed as an error in the MusicSequence reference - am I using the wrong format…
Kpmurphy91
  • 554
  • 5
  • 15
2
votes
2 answers

Do I need to release SystemSoundID if I have ARC on?

Question is in the title: "Do I need to release SystemSoundID if I have ARC on?" Here is my Code: NSURL *pathURL = [NSURL fileURLWithPath:path]; SystemSoundID soundid; AudioServicesCreateSystemSoundID((__bridge_retained CFURLRef)pathURL,…
ManOx
  • 1,935
  • 5
  • 23
  • 37
2
votes
1 answer

iOS AudioQueueNewInput function - how to link it in?

I am trying to use AudioQueueNewInput, which is supposed to be in framework AudioToolbox. When I add AudioToolbox to my project and try to build, I get warnings to the effect that file /AudioToolbox.framework/AudioToolbox is being ignored because…
Jonathan Starr
  • 236
  • 4
  • 15
2
votes
1 answer

Sound does only work on Device but not in Simulator

I am playing some short sounds on my iPad like so: Play a short sound in iOS I am using a caf file which I can successfully play from the Finder. Now I went through quite a bit of a hassle trying to achieve the playback of the sound and I am curious…
Besi
  • 22,579
  • 24
  • 131
  • 223
1
vote
1 answer

Finding Codec in audio file using Apple APIs

Is there a way to find the codec/container of an audio file using Apple APIs (AudioToolbox or Quicktime)?
andrew
  • 272
  • 2
  • 11
1
vote
1 answer

Detect Headphones Unplugged - Monotouch

Is there a way to detect if headphones are unplugged in Monotouch? I am trying to look for the AudioSessionAddPropertyListener method but don't see it. What this method ported over? Here is Apple's docs:…
user472292
  • 1,069
  • 2
  • 22
  • 37
1
vote
1 answer

iOS - AudioServicesPlayAlertSound not working on ipod?

I cannot get AudioServicesPlayAlertSound(kSystemSoundID_Vibrate) to make the ipod beep - I know it cannot vibrate, but its suppsoed to beep atleast. It compiles fine, added the audiotoolbox and just calling that line, and nothing happens. The sound…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
1
vote
2 answers

Objective C: Catch event when an audio is finish to play

i'm new in Objective C, i'm developing an app that play sound on touch event of an uibutton. When i touch the button, it change is image and audio starts to playing. When audio is finish to play, i want to put the original image of uibutton. How can…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
1
vote
1 answer

Problems appending audio after AudioFileOpenURL

I'm having a problem playing back audio data after appending extra recording to it. Here's the general sequence of events, which don't return any errors: AudioQueueNewInput // Start audio queue AudioFileCreateWithURL // Create audio…
Donald
  • 1,718
  • 10
  • 18