FAQ Database Discussion Community


How to replace the deprecated AudioUnitSampleType on iOS (Audio Units)?

ios,objective-c,core-audio,audiounit
I've been studying the Audio Unit Hosting Guide for iOS, and then trying to play around with the sample projects provided. However, all of these projects are using the deprecated AudioUnitSampleType (which seems to be a simple typedef). It might be a rookie question, but how do I go about...

How to use an AU3DMixer with The Amazing Audio Engine?

ios,cocoa-touch,core-audio,audiounit,the-amazing-audio-engine
I am using the (indeed!) Amazing Audio Engine to play some tracks (with an AUFilePlayer, each in a separate AEAudioChannel), which works quite nicely. Now, I would like to add the 3D Mixer Audio Unit kAudioUnitSubType_AU3DMixerEmbedded, but after searching high and low, I can't find any information about how this...

iOS how to play midi notes?

ios,core-audio,midi,audiounit,audiotoolbox
I have searched and already have done an OS X app that can play MIDI notes, but when i tried in iOS, nothing happened. Here is the core code: AUGraph graph; AudioUnit synthUnit; AUNode synthNode, outNode; NewAUGraph(&graph); AudioComponentDescription cd; cd.componentManufacturer = kAudioUnitManufacturer_Apple; cd.componentType = kAudioUnitType_MusicDevice; cd.componentSubType = kAudioUnitSubType_MIDISynth; AUGraphAddNode(graph, &cd,...

Core Audio Swift Equalizer adjusts all bands at once?

ios,swift,core-audio,audiounit,equalizer
I am having trouble setting up a kAudioUnitSubType_NBandEQ in Swift. Here is my code to initialize the EQ: var cd:AudioComponentDescription = AudioComponentDescription(componentType: OSType(kAudioUnitType_Effect),componentSubType: OSType(kAudioUnitSubType_NBandEQ),componentManufacturer: OSType(kAudioUnitManufacturer_Apple),componentFlags: 0,componentFlagsMask: 0) // Add the node to the graph status = AUGraphAddNode(graph, &cd, &MyAppNode) println(status) // Once the graph has been opened get an instance...

Core Audio Matrix Mixer gets stuck and abuses memory when setting number of input or output elements

ios,swift,core-audio,audiounit
I managed to build and use simple audio graphs with Core Audio and Swift but I can't find the right way to use the Matrix Mixer. When I try to set the number of elements, it looks like the program goes in an infinite loop which ends up using lots...

Low latency input/output AudioQueue

ios,swift,audiounit,audioqueue,novocaine
I have two iOS AudioQueues - one input that feeds samples directly to one output. Unfortunately, there is an echo effect that is quite noticeable :( Is it possible to do low latency audio using AudioQueues or do I really need to use AudioUnits? (I have tried the Novocaine framework...

What's the reason of using Circular Buffer in iOS Audio Calling APP?

ios,objective-c,audio,core-audio,audiounit
My question is pretty much self explanatory. Sorry if it seems too dumb. I am writing a iOS VoIP dialer and have checked some open-source code(iOS audio calling app). And almost all of those use Circular Buffer for storing recorded and received PCM audio data. SO i am wondering why...

How to play PCM data/buffer just using AVAudioPlayer or AVPlayer?

ios,objective-c,ios7,core-audio,audiounit
How can i play PCM data/buffer just using AVAudioPlayer or AVPlayer ? I know, i can play PCM data/buffer using AudioUnit/AudioQueue by feeding the data into play callback method. But don't want to do this. I have searched on google a lot but couldn't find any helpful answer or any...

VoIP limiting the number of frames in rendercallback

ios,objective-c,audio,core-audio,audiounit
I am currently developing a VoIP application and one of the libraries I am using requires me to send the frames in the input call back. The requirements is that I must send a sample count which is defined as the number of samples in a frame. This callback will...

Playing Audio on iOS from Socket connection

ios,sockets,audio,audiounit
Hope you can help me with this issue, I have seen a lot of questions related to this, but none of them really helps me to figure out what I am doing wrong here. So on Android I have an AudioRecord which is recording audio and sending the audio as...

Frequency drift in Core Audio on OSX

osx,core-audio,audiounit
I have a skeleton audio app which uses kAudioUnitSubType_HALOutput to play audio via a AURenderCallback. I'm generating a simple pure tone just to test things out, but the tone changes pitch noticeably from time to time; sometimes drifting up or down, and sometimes changing rapidly. It can be up to...

AudioUnitSetProperty Swift errors

ios,swift,audio,core,audiounit
I am trying to set the bands in my equalizer by using AudioUnitSetProperty but cant figure out the syntax in Swift. My code looks like this: var eqFrequencies: NSArray = [ 32, 250, 500, 1000, 2000, 16000 ] var noBands = UInt32(eqFrequencies.count) AudioUnitSetProperty(self.MyAppUnit, AudioUnitParameterID(kAUNBandEQProperty_NumberOfBands), AudioUnitScope(kAudioUnitScope_Global), 0, 6, UInt32(sizeof(noBands))) Anyone know...