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

kAudioUnitType_Output audio unit with a kAudioUnitSubType_VoiceProcessingIO clipping

I'm working on a voice recording and playing app. I'm using a kAudioUnitType_Output audio with kAudioUnitSubType_VoiceProcessingIO. Sometimes it works fine but sometimes has a lot of clipping. I think this is because the ambient noise. I don't know…
DrCachetes
  • 954
  • 1
  • 9
  • 30
2
votes
1 answer

Playing Audio on iOS from Socket connection

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…
Armand
  • 9,847
  • 9
  • 42
  • 75
2
votes
1 answer

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

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 of…
Paolo Marini
  • 323
  • 1
  • 3
  • 13
2
votes
0 answers

core audio offline rendering issue on iOS 8

I want to apply reverb effect on a sound file and want to save it on disk using Core Audio. I successfully apply the effect and played it using kAudioUnitSubType_RemoteIO. Now I want to save it on disk so I use kAudioUnitSubType_GenericOutput and…
Muhammad Ali Yousaf
  • 861
  • 1
  • 7
  • 13
2
votes
2 answers

error after stopping AudioUnit Recording

I'm trying to grab audio input from the iPhone's microphone by using this code: @property (nonatomic) AudioUnit rioUnit; @property (nonatomic) CAStreamBasicDescription outputCASBD; (...) // set our required format - LPCM non-interleaved 32 bit…
cassi.lup
  • 1,261
  • 7
  • 23
2
votes
2 answers

Can I use the old AVAudioPlayer with the new AVAudioEngine?

My app plays audio files with AVAudioPlayer, and I've used most of its methods and properties to build a playback control interface with buttons to play/pause, seek, etc. Now I want to add a pitch-shift feature using the new AVAudioUnitTimePitch in…
arlomedia
  • 8,534
  • 5
  • 60
  • 108
2
votes
1 answer

AudioToolbox AUAudioFilePlayer properties description

I'm confused as to the following properties of AUAudioFilePlayer. The documentation from Apple is confusing at best: kAudioUnitProperty_ScheduleStartTimeStamp kAudioUnitProperty_ScheduledFilePrime kAudioUnitProperty_ScheduledFileRegion Can…
JackyJohnson
  • 3,106
  • 3
  • 28
  • 35
2
votes
1 answer

Playing voice from server stream of nsdata using AudioUnit IOS

I am trying to build some kind of VoIP application in iOS. So far I have been able to successfully send the microphone data as a buffer from microphone to the server using GCDAsyncSocket. Now I need to play back the data I receive, which I am really…
dynebuddha
  • 471
  • 4
  • 9
2
votes
1 answer

AudioToolbox AUGraph failure when connecting nodes error kAudioUnitErr_PropertyNotWriteable

I am trying to create an audio graph with a mixer and an io unit. The io unit will receive audio from the microphone and send it to the mixer, which will mix it with an external sound, and play it back out the speaker. I have created my audio graph…
shane
  • 1,742
  • 2
  • 19
  • 36
2
votes
2 answers

Can't see my plugin in Terminal when running auval -a command

I'm currently following this…
Jessie-May
  • 37
  • 1
  • 3
2
votes
1 answer

Active noise cancellation in iOS

I'm trying to do active noise cancellation in iOS using remote I/O. I have been able to get the audio buffer in 8.24 fixed point format and put it in the speaker as well. Right now I'm trying to capture a sinusoidal wave through microphone (using…
rushafi
  • 863
  • 10
  • 19
2
votes
2 answers

Core Audio get data from AudioQueue (or AudioUnits) into memory

I'm a total noob when it comes to core audio so bear with me. Basically what I want to do is record audio data from a machine's default mic, record until the user decides to stop, and then do some analysis on the entire recording. I've been learning…
themantalope
  • 1,040
  • 11
  • 42
2
votes
1 answer

How to inform audiounit host, that kAudioUnitProperty_Latency has changed?

my AudioUnits are working just fine, but when the latency has changed, they need to inform host about it. Here's my code: AudioUnitEvent e; MMEMSET(&e, 0, sizeof(AudioUnitEvent)); e.mArgument.mProperty.mAudioUnit = Instance;//GetComponentInstance…
Vojtěch Melda Meluzín
  • 1,117
  • 3
  • 11
  • 22
2
votes
0 answers

Play ADPCM stream on iOS (MS IMA 0x11)

I'm using the AudioUnit / RemoteIO API to achieve playback of streaming audio. Other formats such as a-law and u-law are working fine. Here is an example of how I am setting up the a-law format: audioFormat.mSampleRate =…
C-o-r-E
  • 583
  • 7
  • 16
2
votes
2 answers

Why can't I change the number of elements / buses in the input scope of AU multi channel mixer?

UPDATE: I'm changing my code to illustrate the issue in a more streamlined way. Also I had a little bug which, while not deterring from the problem, did add some confusion. I'm instantiating a Multi Channel Mixer AU in iOS…
SaldaVonSchwartz
  • 3,769
  • 2
  • 41
  • 78