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
0 answers

Is there a way to stop the AURemoteIO thread from the AutioToolBox from performing its polling tasks?

So I am using cocos2dx new AudioEngine, and I am having this crash: https://github.com/cocos2d/cocos2d-x/issues/18948. 0 0x0000000184a5cea8 in CrashIfClientProvidedBogusAudioBufferList () 1 0x000000018493f270 in…
downstroy
  • 960
  • 1
  • 9
  • 27
1
vote
1 answer

Having trouble generating MIDI file from MusicSequence

I'm trying to generate a MIDI file from a simple MusicSequence. Here's my code: MusicSequence mySequence; MusicTrack myTrack; NewMusicSequence(&mySequence); MusicSequenceNewTrack(mySequence, &myTrack); MIDINoteMessage noteMessage; MusicTimeStamp…
Bijoy Thangaraj
  • 5,434
  • 4
  • 43
  • 70
1
vote
1 answer

AUParameterTree dealloc causing deadlock

I'm experiencing a crash with the following stack trace in a background thread: My app contains audio units that are allocated for a given set of audio files. When the given set of audio files changes, any current audio units are deallocated and…
hgwhittle
  • 9,316
  • 6
  • 48
  • 60
1
vote
1 answer

Is AudioServicesPlaySystemSound allowed to use in App Store apps?

The AudioServicesPlaySystemSound function comes under System Sound Services. Is this service of AudioToolbox allowed to use? AudioServicesPlaySystemSound(1012); Or can it be rejected by Apple when submitting an app using it to the App Store?
1
vote
1 answer

Play audio and vibration simultaneously on ios using swift

Is there any way to play audio file and vibrate iphone when audio is started and stop vibrating when audio stops playing? currently this code is working but it plays audio and when audio stops then it vibrates the phone, I want both (audio and…
1
vote
1 answer

MusicSequenceFileLoad Works in Playgrounds but not in Project

what am i doing wrong? i'm trying to open a midi file and read it's contents. so far i can open the file in playgrounds but i get "Open::fopen failed" in my project override func viewDidLoad() { super.viewDidLoad() let path =…
Mec Os
  • 131
  • 1
  • 8
1
vote
1 answer

How can I play UNNotificationSound.default() by a player in my app?

I have a list of ringtones in iOS app, also, one of the options should be the system default ringtone, that the user can select and play. How can I obtain the ringtone that user selected and how can I play this ringtone in-app with AVAudioPlayer,…
Melany
  • 466
  • 7
  • 20
1
vote
1 answer

AVAudioSession reroutes iPhone audio automatically?

I'm having problems with AVAudioSession using the AVAudioRecorder in a cocos2d game that I'm working on. I'm trying to capture mic input using a simple AVAudioRecorder example to detect when the user makes a sound in the mic (the sound itself…
chmod
  • 1,173
  • 1
  • 9
  • 17
1
vote
0 answers

What does this warning indicate in console. I figured it out the first time (I get it from iphoneSimulator->Hardware-SimulateMemoryWarning?

The app crash only on the iPhone 3G. Is it any audio toolbox library problem? I get the following warning message which cause the application to crash. What does it say? (I get it from iphoneSimulator->Hardware-SimulateMemoryWarning.) 2011-01-22…
NIKHIL
  • 2,719
  • 1
  • 26
  • 50
1
vote
1 answer

How do you change the music instrument for a MusicTrack?

Using audiotoolbox, I created a MusicSeqence by NewMusicSequence. Then I created a MusicTrack by MusicSequenceNewTrack. I inserted a few notes into the MusicTrack by MusicTrackNewMIDINoteEvent. And I created an AVMIDIPlayer to play the…
Alan Wu
  • 115
  • 9
1
vote
1 answer

Audio Toolbox sound change problem

i'm new in iphone programin and i wrote a little animation program. i used audiotoolbox frame for sound and it was working. But when i change the sound file. (deleted exfile from resources and folder and add the other file with the same name, same…
metafizika
  • 11
  • 1
1
vote
1 answer

How to delete files created with ExtAudioFileCreateWithURL in c++?

I am doing low level audio processing on iOS. As a result parts of my application are written in c++. There I create and write to audio files. Files are created using ExtAudioFileCreateWithURL and written to using ExtAudioFileWriteAsync. Files are…
1
vote
1 answer

Trouble creating an AudioQueueBufferRef in Swift

ringBuffers = [AudioQueueBufferRef](repeating: AudioQueueBufferRef(), count:inflightBuffersCount) says init() is unavailable: use 'nil' literal but if it is ringBuffers = [AudioQueueBufferRef](repeating: nil, count: inflightBuffersCount) it…
Necktwi
  • 2,483
  • 7
  • 39
  • 62
1
vote
0 answers

When is mChannelLayoutTag not kAudioChannelLayoutTag_UseChannelDescriptions

I was wondering if someone could tell me when mChannelLayoutTag in AudioChannelLayout is not kAudioChannelLayoutTag_UseChannelDescriptions, if the AudioChannelLayout is returned from AudioUnitGetProperty with…
CMChang
  • 51
  • 5
1
vote
0 answers

AVPlayer stops playing when reaching end of buffer while offline

I am using the AVPlayer class to stream remote (and really long) MP3 files by loading AVPlayerItem instances into the player: let player = AVPlayer(playerItem: myAVPlayerItemInstance) I listen to KVO changes and system notifications, to detect…
Daniel Saidi
  • 6,079
  • 4
  • 27
  • 29