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
7
votes
1 answer

Playback and Recording simultaneously using Core Audio in iOS

I need to play and record simultaneously using Core Audio. I really do not want to use AVFoundation API (AVAudioPlayer + AVAudioRecorder) to do this as I am making a music app and cannot have any latency issues. I've looked at the following source…
Bijoy Thangaraj
  • 5,434
  • 4
  • 43
  • 70
7
votes
1 answer

Write the output of a Remote IO Audio Unit to a file offline

I have a program that generates sound using an AUSampler connected to a Remote IO Audio Unit. The AUSampler is controlled by pre-recorded events that are triggered in a timed loop. I want to write the resulting sound to a file. There are some other…
Jayson
  • 1,689
  • 14
  • 26
7
votes
2 answers

How do I connect an AudioFilePlayer AudioUnit to a 3DMixer?

I am trying to connect an AudioFilePlayer AudioUnit to an AU3DMixerEmbedded Audio Unit, but I'm having no success. Here's what I'm doing: create an AUGraph with NewAUGraph() Open the graph Initalize the graph Add 3 nodes: outputNode:…
Benedict Cohen
  • 11,912
  • 7
  • 55
  • 67
7
votes
3 answers

Error -50 from AudioUnitRender

I'm getting error -50 (invalid parameters) from AudioUnitRender in the following context. I'm using this Pitch Detector sample app as my starting point, and it works fine. The only major difference in my project is that I'm also using the Remote I/O…
Luke
  • 7,110
  • 6
  • 45
  • 74
6
votes
2 answers

EXC_BAD_ACCESS in AudioRingBuffer::GetTimeBounds

Okay, here's the scenario: I have a real-time recording app using ExtAudioFileWriteAsync targeted for iOS 4.3. The first time I record with the app, it works perfectly. If I press stop, then record again, better than half the time I will get an…
6
votes
1 answer

realtime midi input and synchronisation with audio

I have built a standalone app version of a project that until now was just a VST/audiounit. I am providing audio support via rtaudio. I would like to add MIDI support using rtmidi but it's not clear to me how to synchronise the audio and MIDI…
olilarkin
  • 460
  • 6
  • 17
6
votes
3 answers

iPhone AudioUnitRender error -50 in device

I am working on one project in which i have used AudioUnitRender it runs fine in simulator but gives -50 error in the device. If anyone have faced similar problem please give me some solution. RIOInterface* THIS = (RIOInterface…
Satish
  • 1,012
  • 2
  • 15
  • 32
6
votes
2 answers

iOS: Is it possible to record from multiple microphones at the same time

All the recent iPhones have 2+ microphones. Is it possible to record from all the microphones at the same time? If this is possible, what is the best iOS audio library for this (AudioKit, EzAudio, AudioUnits, CoreAudio)? There is no mention of this…
Artash
  • 569
  • 6
  • 11
6
votes
1 answer

AUAudioUnit & AudioUnitGetProperty, AudioUnitSetProperty

With the comming of Audio Unit v3, the main class we subclass is new AUAudioUnit objective C class. The AUAudioUnit has AUParameter implementation and is easy to work with AUParameter via AUAudioUnit.parameterTree property. I am unable to use Audio…
Jan Kubny
  • 303
  • 1
  • 8
6
votes
2 answers

Custom EQ AudioUnit on iOS

The only effect AudioUnit on iOS is the "iTunes EQ", which only lets you use EQ pre-sets. I would like to use a customized eq in my audio graph I came across this question on the subject and saw an answer suggesting using this DSP code in the render…
tassock
  • 1,633
  • 1
  • 17
  • 32
6
votes
2 answers

Use system channel instead of ringer channel when using EPSSampler in iOS

I'm using EPSSampler to play some notes in my tiny iOS app. It works nicely, except that the sound is controlled through the ringer settings instead of the system volume settings. The problem is that, if the ringer is turned off, my app makes no…
Morpheu5
  • 2,610
  • 6
  • 39
  • 72
6
votes
0 answers

Converting mono audio input to stereo output iOS

I'm trying to route a mono audio unit input to a stereo output. I already looked at this similar question in depth but there was never any resolution. I first create an AVAudioSession with the AVAudioSessionCategoryPlayAndRecord category,…
Surz
  • 984
  • 3
  • 11
  • 36
6
votes
0 answers

AVAudioEngine warning: "deprecated Carbon Component Manager for hosting Audio Units"

I'm writing my first audio app for Mac, which loads an external audio unit and uses it to play sound through an instance of AVAudioEngine, and I've been seeing this warning: WARNING: 140: This application, or a library it uses, is using the …
flatpickles
  • 2,198
  • 2
  • 15
  • 21
6
votes
1 answer

iOS: Audio Units: setting arbitrary sample rate

Can I set any sample rate I want? What are the restrictions? How about the hardware sample rate? And once that is set, what is the restriction on the internal sample rates passed between units? I'm guessing that the actual hardware rate may have…
P i
  • 29,020
  • 36
  • 159
  • 267
6
votes
2 answers

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

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…
IPcoder
  • 91
  • 2
  • 5