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

AudioUnitSetParameter reverb parameters actual value range

Now this may be due to me running Mojave 10.14.6 on an early 2015 MacBook pro, but for what it's worth, here is what I observed when setting kAudioUnitSubType_MatrixReverb values using AudioUnitSetParameter( _mixerUnit, parameter,…
Pierre Dufresne
  • 166
  • 1
  • 6
0
votes
1 answer

How to Record audio using AudioUnit with Xamarin

I'm trying to record audio using the AudioUnit. I have the code below: However the SetFormat method returns PropertyNotWritable. I have been able to use code like this for playing audio using the same format arguments. But can't make it work for…
trampster
  • 8,598
  • 4
  • 37
  • 52
0
votes
1 answer

Why iOS audio capture callback time interval is not smooth?

I writing my iOS app to record audio. I called session.setPreferredIOBufferDuration(0.001) to set the duration, and recorded the intervals between two callbacks. This is data of my iPhone 8: max = 198 avg = 2.75314 min = 0…
0
votes
0 answers

Connection of varispeed with RemoteIO in iOS

I am working with audio units to play and change the speed of playback. Since AudioGraph is deprecated. What I have done, I have successfully played Audio coming from UDP via audio-units and made connections like: converterUnit -> varispeed ->…
Muhammad Usman Bashir
  • 1,441
  • 2
  • 14
  • 43
0
votes
0 answers

Change speed and pitch of audio in real time [AudioUnit iOS]

We are working with Audio Unit on iOS as part of a VOIP application. We have successfully played audio but now we would like to control the playing speed and pitch of audio in real time. We are getting real time audio bytes from the UDP socket.…
shayan
  • 25
  • 6
0
votes
1 answer

How can you add a fixed gain to an AudioGraph?

Is there an AudioUnit that can apply a fixed gain within an AudioGraph? Are there other alternative methods?
Jonathan Arbogast
  • 9,620
  • 4
  • 35
  • 47
0
votes
1 answer

Finding cause of crackle and pops in custom AUAudioUnit

I am trying to learn some Core Audio and to start with I've tried to make a basic audio unit that just generates a sine wave with an adjustable frequency. The problem I have now is that I have severe crackle and pops whenever I adjust the frequency…
Kenny Lövrin
  • 781
  • 5
  • 15
0
votes
1 answer

Processing data with Audio Unit recording callback [iOS][Swift]

I am creating a cross platform VOIP application which uses UDP to send and receive data. I am using audio units for the real time recording and playback. The communication is fast and smooth when working with raw data but when I involve a codec like…
shayan
  • 25
  • 6
0
votes
1 answer

Clipping sound with opus on Android, sent from IOS

I am recording audio in IOS from audioUnit, encoding the bytes with opus and sending it via UDP to android side. The problem is that the sound is playing a bit clipped. I have also tested the sound by sending the Raw data from IOS to Android and it…
shayan
  • 25
  • 6
0
votes
1 answer

playing pcm data on iphone

i need to play linear pcm data live on a iphone. i get a LIVE datastream via RTSP, and i can currently read it out from iphone, save it into a file, play it on a desktop audioplayer that supports pcm, therefore i think the transport is okay. now i…
aegas
  • 1
  • 1
0
votes
1 answer

Low latency audio output problems on iOS (aka How to beat AUAudioUnit sampleRate, maximumFramesToRender, and ioBufferDuration into submission)

Okay, I'm clearly missing some important piece here. I'm trying to do low-latency audio across the network, and my fundamental frames are 10ms. I expected this to be no problem. My target phone is an iPhone X speakers--so my hardware sample rate…
0
votes
1 answer

Core Audio MIDI Synth AU & MusicPlayer - Cannot be pulled by AudioUnitRender programmatically

I have an AUGraph with AudioUnits. My MIDI Synth AudioUnit was created by this: AudioComponentDescription midiSynthDesc; midiSynthDesc.componentType = kAudioUnitType_MusicDevice; midiSynthDesc.componentSubType =…
John
  • 2,672
  • 2
  • 23
  • 29
0
votes
1 answer

AudioUnit inputCallback with AudioUnitRender -> mismatch between audioBufferList.mBuffers[0].mDataByteSize != inNumberFrames

We are using the AudioUnits input callback to process the incoming buffer. The audio unit setup is taken mostly from https://github.com/robovm/apple-ios-samples/blob/master/aurioTouch/Classes/AudioController.mm I have added some sanity check in the…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
0
votes
1 answer

How to modify the size of AudioUnit Buffer?

I'm developing an app of recording, but I have a demand that the size of input buffer should be 882 bytes. I know that I can modify the mDataByteSize of buffList like this picture. But it can only be modified to power of 2. When I tried to modify it…
Grayson
  • 41
  • 8
0
votes
0 answers

MIDI Note On in middle of Note

I am trying to play MIDI Notes in iOS using AudioGraph and AudioUnit. I used kAudioUnitSubType_MIDISynth to successfully create MIDISynth Unit, loaded sound font file into the unit, and used NOTE ON (0x90|0) message to start a note. osStatus =…
John
  • 2,672
  • 2
  • 23
  • 29