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
1
vote
2 answers

Convert MusicTimeStamp (AudioToolbox) to Milliseconds

I am using the MIKMIDI framework and this is using the AudioToolbox type MusicTimeStamp How can i convert this timestamp to milliseconds?
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
1
vote
2 answers

Mixing down two files together using Extended Audio File Services

I am doing some custom audio post-processing using audio units. I have two files that I am merging together (links below), but am coming up with some weird noise in the output. What am I doing wrong? I have verified that before this step, the 2…
coneybeare
  • 33,113
  • 21
  • 131
  • 183
1
vote
1 answer

ExtAudioFileSeek and ExtAudioFileWrite together on the same file

I have a situation where I can save a post-processing pass through the audio by taking some manipulated buffer from the end of the track and writing them to the beginning of my output file. I originally thought I could do this by resetting the write…
coneybeare
  • 33,113
  • 21
  • 131
  • 183
1
vote
1 answer

AudioToolBox Recorder gets affect by AVFoundation AudioPlayer

So, I have the following classes: audio recorder (using AudioToolbox and CoreAudio) that records audio. audio player (using AVFoundation) The recorder captures audio, sends it to a server who then replies with another audio, then the player plays…
LuAndre
  • 1,114
  • 12
  • 23
1
vote
1 answer

First instance of sound is delayed

I'm using the following code to play a simple clicking sound when tapping a button. import AudioToolbox private var clickSound: SystemSoundID! func createSound(soundName: String) -> SystemSoundID { var id: SystemSoundID = 0 let url =…
Scott Kilbourn
  • 1,545
  • 6
  • 18
  • 40
1
vote
0 answers

Host aumu AudioUnit

I'm having a heck of a time trying to get kAudioUnitEvent_ParameterValueChange to work with my custom C++ Audio Unit Host app and a third party 'aumu' unit. I'm loading the unit and displaying the user interfaces just fine. The audio unit is…
Malfunkn
  • 11
  • 3
1
vote
1 answer

iOS kAudioFileUnsupportedDataFormatError while creating Audio File for recording

I am using ExtAudioFileCreateWithURL and consistently get a runtime kAudioFileUnsupportedDataFormatError error when creating a Stereo LPCM Float32 Wave file. I insist that the same procedure works fine with a Mono (single channel) file. Any…
Arshia
  • 334
  • 2
  • 13
1
vote
2 answers

MusicSequenceFileLoad Returns -1 on iOS10 (AudioToolbox/MusicPlayer)

UPDATE 10/9/2016: I had opened up Radar #28425770 with Apple on 9/22/2016 for the following defect and they have just marked is as a duplicate (of Radar #28327056), so this appears to be a known bug within iOS10. I've encountered an error invoking…
Derek Lee
  • 3,452
  • 3
  • 30
  • 39
1
vote
0 answers

AVAudioConverter Compressed/PCM conversion throwing OSStatus -50 (kAudio_ParamError)

I'm trying to use AVAudioConverter to convert compressed audio data (in this case mp3, 96kbps, CBR, stereo) into PCM data (the standard output format, obtained by calling audioEngine.outputNode.outputFormatForBus(0)). I use an AudioFileStream to get…
1
vote
1 answer

Best Framework for Audio

In that application I am recording the voice of a human storing it in a file in NSTemporaryDirectory() and then playing it. So far I have used AVAudioPlayer and AVAudioRecorder but after some time when I record it simultaneously it plays the sound I…
Inder Kumar Rathore
  • 39,458
  • 17
  • 135
  • 184
1
vote
3 answers

Why does this Audio Unit RemoteIO initialisation work on iPhone but not in simulator?

I am using the Audio Unit services to set up an output rendering callback so I can mix together synthesized audio. The code I have seems to work perfectly on the devices I have (iPod Touch, iPhone 3G, and iPad) but fails to work on the…
1
vote
2 answers

Display current beat position in MusicSequence (coreMIDI/Swift)

I've created a music sequence using coreMIDI and AudioToolBox and would now like to display the current beat position of the looped sequence in the UI. If the loop is only four beats, I would like the display to toggle between 1,2,3,4 and return to…
derekFairholm
  • 285
  • 1
  • 14
1
vote
2 answers

Vibrations and alert not working in iOS

so I'm running on my iPad Mini and my code looks like -(void)viewDidLoad{ [super viewDidLoad] AudioServicesPlaySystemSound(1005); AudioServicesPlayAlertSound(kSystemSoundID_Vibrate); } and I imported #import #import…
user124577
  • 109
  • 1
  • 2
  • 8
1
vote
1 answer

What causes kAUGraphErr_CannotDoInCurrentContext error when calling DisposeAUGraph() in iOS 9?

I've got some code that plays a MIDI file using the AudioToolbox framework's MusicPlayer, MusicSequence, and AUGraph. Some time after playback is complete, the code below is used to tidy up. This code runs without issues in iOSs 6–8. However, in iOS…
Rich
  • 7,348
  • 4
  • 34
  • 54
1
vote
1 answer

AudioServicesPlaySystemSound is ignoring Audio Session category, why?

I'm developing audio app and I'm facing the problem with system sound services (AudioToolbox.framework) and audio session category. I have set audio session category to AVAudioSessionCategoryAmbient, which should consider iphone's silent…
fillky
  • 591
  • 2
  • 6
  • 18