Questions tagged [audiounit]

Audio Units are plug-ins for Apple's CoreAudio framework which generate or process audio streams.

Audio Units (commonly referred to as simply "AU") are plug-ins for Apple's CoreAudio system which are capable of generating or processing audio streams. Although Audio Units were originally created to compete with Steinberg's VST SDK, they have evolved in quite different directions.

Currently Mac OSX and iOS are the only platforms which support the Audio Unit SDK. Both OSX and iOS ship with a number of default Audio Units for basic audio stream operations, though it is possible to write custom Audio Units on both platforms.

Resources:

Related tags:

752 questions
2
votes
1 answer

iOS Audio units reverb stream format issue -10868 kAudioUnitErr_FormatNotSupported

I am writing a simple iOS app with Audio Units. I want to add a reverberation effect. So the graph looks like RemoteIO_Input -> Reverb -> RemoveIO_Output. But I am getting an error when trying to set up a stream format for the reverb unit -…
Max Komarychev
  • 2,836
  • 1
  • 21
  • 32
2
votes
3 answers

My custom Audio Unit opens in AU Lab but not Garageband or Ableton

I created a filter AU in Xcode as a project for a signals class I'm taking,and I can open it just fine in AU Lab from my components folder, but I cant seem to open it in a DAW. Can anyone help me get to the bottom of this? Could it be a setting in…
2
votes
4 answers

Play sound file together with AudioUnit

i have an app which uses an AudioUnit with subtype kAudioUnitSubType_VoiceProcessingIO. The input comes from a network stream. That works fine, but now i want to play a simple sound from file (alert sound after receiving a push notification). That…
MrJ
  • 123
  • 6
2
votes
2 answers

No audio on iOS app using the RemoteIO AudioUnit when the iPad is restarted

I have a strange issue where an iOS app that I have developed works fine when I build and run it from XCode on the device. However, on restarting the device and running the app, I get no audio at all. If I subsequently kill the app and restart it…
e7mac
  • 553
  • 7
  • 19
2
votes
3 answers

Getting the right numeric data type cast for a specific ASBD buffer

I've got an AudioBuffer with its void *mData full of freshly-rendered audio samples using Apple's CoreAudio Audio Unit API, but I have a problem getting the samples in the right format. The ASBD of said buffer is as follows: Float64 mSampleRate …
Carlos Vega
  • 211
  • 3
  • 9
2
votes
1 answer

Decoding AudioStreamBasicDescription's mFormatFlags number (ASBD.mFormatFlags)

I'm writing an iOS app that uses CoreAudio's Audio Unit API, and at a certain point I do a AudioUnitGetProperty(audioUnit, kAudioUnitProperty_StreamFormat, ...) call. At that point I set a breakpoint to look into the ASBD, and I find the…
2
votes
0 answers

OSStatus error -50 (paramErr) on AudioUnitRender call on device

I'm writing an iOS app that captures audio from the microphone, filters it with a high-pass filter, and plays it back through the speakers. I'm getting a -50 OSStatus error when I call AudioUnitRender on the render callback function when I run it on…
2
votes
1 answer

Audio Units samples value range

I wanted to know what kind of values Audio Units expects in the buffer. Right now when I calculate the samples for a sine wave on one single frequency with amplitude 0.5 everything works fine. But when I want to play several frequencies at the same…
user393964
2
votes
2 answers

How to implement pause function for Audio Units

My code is based on this example and a stop function is already implemented, there are functions to uninitialize and stop the audio unit: AudioOutputUnitStop(toneUnit); AudioUnitUninitialize(toneUnit); …
user393964
2
votes
2 answers

Set a ScheduledAudioFileRegion to start again

I am trying to play a sound when a button it tapped and am using the iOS 5 file player audio unit. The file player plays audio using the ScheduledAudioFileRegion and can be scheduled to play as many frames as needed ScheduledAudioFileRegion…
some_id
  • 29,466
  • 62
  • 182
  • 304
2
votes
2 answers

Using Audio Units to play several short audio files with overlap

I have run through an audio units tutorial for a sine wave generator and done a bit of reading, and I understand basically how it is working. What I would actually like to do for my app, is play a short sound file in response to some external event.…
wfbarksdale
  • 7,498
  • 15
  • 65
  • 88
2
votes
2 answers

General tutorial on OS X audio programming

I would like to do some fairly simple audio programming on OS X (using Lion and Xcode 4.3) -- synthesizing tones with given frequencies, mainly. Trouble is, Apple's documentation on the subject is way too high-level for my current knowledge of the…
2
votes
1 answer

Muffling and stereo delay in OpenAL on ios?

So this is a rather specific question about the openAl implementation on ios. There are 2 parts. 1.) When humans hear sound we can typically tell if the sound is coming from behind or in front of us because the sound coming from behind is more…
wfbarksdale
  • 7,498
  • 15
  • 65
  • 88
2
votes
2 answers

Direct calls to Audio Unit instead of callbacks iOS

Are there direct calls to the audio unit so that I don't have to depend on the system callbacks-input and render callbacks(I can mimic this with a timer). For example, like there is AudioUnitRender to pull data from the audio unit, is there another…
Namratha
  • 16,630
  • 27
  • 90
  • 125
2
votes
1 answer

Control mono playback output with Core Audio

I'm developing an application for iOS, that uses the RemoteIO audio unit to record audio from the microphone, process it and output to the speakers (headset). Currently I use a single channel (mono) for input and output. What I'd like to do, is to…
kshahar
  • 10,423
  • 9
  • 49
  • 73