audiounit

What's the difference between the "client format" and "virtual format" in Audio Unit?

In the context auf Audio Unit or I/O Audio Units? I assume the "client format" is the format of my sound file, while the "virtual format" is whatever openAL uses internally for "rendering" or "mixing" audio? ...

Is kAudioFormatFlagIsFloat supported on iPhoneOS?

I am writing an iPhone app that records and plays audio simultaneously using the I/O audio unit as per Apple's recommendations. I want to apply some sound effects (reverb, etc) on the recorded audio before playing it back. For these effects to work well, I need the samples to be floating point numbers, rather than integers. It seems thi...

DIRAC2 for real time pitch correction and autotune?

Has anyone implemented the DIRAC2 library from http://www.dspdimension.com/technology-licensing/dirac2-iphone/ for real time pitch correction on the iPhone? The library doesn't appear to support real time processing but perhaps someone has done it? Thx ...

Why is AudioOutputUnitStart freezing my app in iOS 4?

Hi guys, I have an audio app which uses the RemoteIO AudioUnit. It works fine on iPhone, iPad, and any flavor of the simulator on 3.2, but when it hits AudioOutputUnitStart (), it freezes. I get the message "AddRunningClient starting device on non-zero client count" in the console, which I'm not sure how to resolve. I stop the unit and ...

Recording with Remote IO

I've looked at aurioTouch but I wanted to do away with the UI and the playback function. Also looked at http://atastypixel.com/blog/using-remoteio-audio-unit/ but so far with no success. Appreciate if someone can point out any issues in my code. // configure audio session sampleRate = 44100.0; // Hertz AVAudioSession *mySession =...

iPhone: Change playback speed with Audio Units

What are the different ways to change the playback speed of audio on the iPhone, when using Audio Units? What are the advantages / disadvantages of each solution? I have a mixer unit and an IO unit. Do I need to add another unit (eg. converter unit)? What audio unit parameters should I set, on which (input or output) bus on which audio ...

How to change a recorded voice to a man's voice in Core Audio (Audio Unit/ Remote IO) for iPhone

Hi All, I am new to Core Audio and really lost, I am trying to record an audio and then apply voice modulation to that recording and play it back. I have looked at the example Speak Here which uses Audio Queue for audio recording. I am stuck at the part of how to change the audio samples. I understand that it can be done using Audio Unit...

Core Audio AudioFIleReadPackets... looking for raw audio

I'm trying to get raw audio data from a file (i'm used to seeing floating point values between -1 and 1). I'm trying to pull this data out of the buffers in real time so that I can provide some type of metering for the app. I'm basically reading the whole file into memory using AudioFileReadPackets. I've create a RemoteIO audio unit to...

iPhone: AudioBufferList init and release

What are the correct ways of initializing (allocating memory) and releasing (freeing) an AudioBufferList with 3 AudioBuffers? (I'm aware that there might be more than one ways of doing this.) I'd like to use those 3 buffers to read sequential parts of an audio file into them and play them back using Audio Units. ...

play the sound from mic using the AUGraph

hi guys, when i'am using the AUGraph to realize playing sound from the mic, i have a problem, in the device(iphone 3g), i can only hear from the right side of the headset, but it is well in the simulator, i can hear from both of the side of the headset. here are the code i use to connect the input to the output: AUGraphConnectNodeInp...

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 simulator. On the simulator, the AudioUnitInitialise function fails and returns a value of -10851 (kA...

Add a string parameter to an AudioUnit

For instance, this AudioUnit has to connect to a host through the network, and the hostname has to be configured in a Cocoa View, and has to be saved so that reloading the project restores the hostname. How would you do that (interface + parameter saving, apart from the network thing of course)? ...

AudioUnit: access ComponentKernel properties from CocoaView

Hi, I would like to access my AudioUnit Component Kernel members from an action method defined in the cocoa view of my AudioUnit Component : - (IBAction)iaParam1Changed:(id)sender { float floatValue = [sender floatValue]; NSAssert(AUParameterSet(mParameterListener, sender, &mParameter[0], (Float32)floatValue, 0) == noErr, @"[MyA...

How can an Audio Unit detect start and stop of its host?

Hi, How can an Audio Unit component detect start and stop of an Audio Unit host? Within the component's Kernel Process(), I tried with the CallHostTransportState(...) method, which returns whether the host is playing or not, therefore I can detect a first start; but the Process() is not called anymore when the host stops, so I can't de...

How to make a simple EQ AudioUnit (bass, mid, treble) with iOS?

Hi, does anyone know how to make a simple EQ audio unit (3 bands - low, mid, hi) with iOS ? I know how to add an iPod EQ Audio Unit to my AU Graph. But it only give you access to presets and I need proper control of the EQ. I've looked around for some tutorials or explanations but no luck. Thanks. André ...

When to set kAudioUnitProperty_StreamFormat ?

When to set kAudioUnitProperty_StreamFormat (and kAudioUnitProperty_SampleRate too)? For each AU in my AUGraph ? Or is it enough to set it jus for the AU Mixer ? André ...

What is the difference between CAStreamBasicDescription and AudioStreamBasicDescription ?

What is the difference between CAStreamBasicDescription and AudioStreamBasicDescription? Thanks. ...

How to play infinitely overlapping sounds?

Hi, I have a button that triggers a sound on an iphone. I am using AudioUnits to minimize the latency. Right now, if the user taps the button twice, the sound do not overlap and the first triggered sound is cut by the second sound. Is there an easy way to let the (same) sound overlapping as many times as the user taps the buttons? Tha...