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

How to convert UnsafeMutablePointer to AudioBuffer in Swift?

I have an AURenderCallbackStruct setted up with an Audio Unit. In the callbacks i am getting the audio data as ioData: UnsafeMutablePointer . check the code below. func renderCallback(inRefCon: UnsafeMutablePointer,…
user6300701
2
votes
1 answer

using AUScheduleParameterBlock from a host on AUAudioUnit v3

I am new AUAudioUnits and trying to get an understanding of how to use the v3 API. I am trying to schedule a parameter change on a kAudioUnitSubType_MultiChannelMixer AUAudioUnit so that I can ramp a gain change over time. I am able to set the gain…
Dallas Johnson
  • 1,546
  • 10
  • 13
2
votes
3 answers

OSX CoreAudio: Getting inNumberFrames in advance - on initialization?

I'm experimenting with writing a simplistic single-AU play-through based, (almost)-no-latency tracking phase vocoder prototype in C. It's a standalone program. I want to find how much processing load can a single render callback safely bear, so I…
user3078414
  • 1,942
  • 2
  • 16
  • 24
2
votes
0 answers

How can I register a manufacturer code to be used in AU app extensions?

The links for registering a manufacturer code seem to redirect to a page that doesn't offer any registration possibilities. http://developer.apple.com/datatype/ The link is from the Audio Unit Development fundamentals, stating that Apple expects…
user1251560
  • 109
  • 7
2
votes
0 answers

AU v3: Ignoring lax activation attempt for unsupported domain: apple-extension-service, viewbridge

There is an AudioUnitV3Example sample code by Apple for iOS. As well as Audio Unit Extension OS X target template in Xcode (7.2). I created (for debug purpose) simple AUv3 PlugIns Host which used AVFoundation API to build playback engine graph. It…
Vlad
  • 6,402
  • 1
  • 60
  • 74
2
votes
4 answers

Writing bytes to audio file using AUHAL audio unit

I am trying to create a wav file from the sound input I get from the default input device of my macbook (built-in mic). However, the resultant file when imported to audacity as raw data is complete garbage. First I initialize the audio file…
2
votes
1 answer

Adding an Effect Audio Unit on to my current Setup

I am creating a toy synth project for my iphone to where i can drag my finger around and frequency and volume changes based on x & y coordinates. It works beautifully, sounds great and the color even changes based on the tone and pitch of the…
2
votes
1 answer

Translate Objective - C Introduction to AudioUnits into Swift

I alredy managed to translate this code so the render callback gets called: http://www.cocoawithlove.com/2010/10/ios-tone-generator-introduction-to.html I'm sure that my render callback method is not right implemented, because I either get no sound…
easysaesch
  • 159
  • 1
  • 14
2
votes
1 answer

How to correctly update AUSampler's loadInstrument property?

I have an AUGraph consisting of two nodes: AUSampler unit and output unit. I am loading samples to AUSampler from sf2 files. I have multiple sf2 files and want to switch between them in runtime. Currently I have the following code to set a sf2…
Dmitry Klochkov
  • 2,484
  • 24
  • 31
2
votes
1 answer

How to get AudioComponent's Description Type letter code?

I'm trying to understand AudioComponents before instanciate them and understand/use AudioUnits... I create an AudioComponentDescription by using wildcards: var inDesc = AudioComponentDescription(componentType: OSType(), …
Fafa
  • 93
  • 8
2
votes
1 answer

What is the unit of measurement of raw audio data from Remote I/O unit?

I am recording the raw audio data using Remote I/O unit as given below: static OSStatus performRender(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp…
Rohit Kashyap
  • 934
  • 2
  • 8
  • 23
2
votes
1 answer

Why is AudioOutputUnitStart freezing my app in iOS 4?

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…
Luke
  • 7,110
  • 6
  • 45
  • 74
2
votes
2 answers

Simple Audio Units Host to drive an Audio Units Instrument

I have to generate the audio for many isolated notes, chords and melodies using a sampled instrument. What would be the easiest way to programmatically do so (I don't want to manually enter the notes in a DAW then bounce the audio)? I found this…
Wolfy
  • 1,445
  • 1
  • 14
  • 28
2
votes
2 answers

Low latency input/output AudioQueue

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…
Jens Schwarzer
  • 2,840
  • 1
  • 22
  • 35
2
votes
1 answer

Frequency drift in Core Audio on OSX

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…
Dan Halliday
  • 725
  • 6
  • 22