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
0 answers

file unit callback shows stereo channels in buffer, but the file loaded was 6 channel

We are trying to play an 5.1 (6 channels) AAC audio file using AUGraph. We also tried using AVAudioEngine. We have connected to 5.1 surround sound output device (Sony Speakers). The file is played as stereo file. All the channels are played in Left…
0
votes
0 answers

swift, Use AVPictureInPictureController with AudioUnit

I am trying to use AVPictureInPictureController but with AudioUnit. Since, I am recording and playing only using AudioUnit and can't create AVPlayerItem then how can i achieve this functionality. I went through multiple examples but all with…
Muhammad Faizan
  • 353
  • 4
  • 15
0
votes
0 answers

Audio Units (AU) plugin installation fails silently

Trying to figure out how to debug an Audio Unit plugin problem. After an AU plugin is built, it gets copied to ~/Library/Audio/Plug-Ins/Components. Then some of the time auval (the AudioUnit validation utility) will report that it is present and…
FuzzyWuzzy
  • 763
  • 1
  • 6
  • 12
0
votes
1 answer

Setting sampling rate of default audio output device programmatically

I'm working on an application that plays sounds through the default audio device on a Mac. I want to change the output sampling rate and bit depth of the default output device but it always gives me a kAudioUnitErr_PropertyNotWritable error…
act1292
  • 19
  • 6
0
votes
0 answers

AudioUnitRender callback set buffer list

I have the following AudioUnit setup to process audio frames: var renderCallbackStruct:AURenderCallbackStruct = AURenderCallbackStruct() renderCallbackStruct.inputProc = renderCallback renderCallbackStruct.inputProcRefCon =…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
0
votes
1 answer

Cannot use Voice Isolation with AVAudioRecorder or AudioUnit

I'm trying to record voice audio with either AVAudioRecorder or AUAudioUnit. In both, after a recording has started, whenever calling AVCaptureDevice.showSystemUserInterface(.microphoneModes) and selecting voice isolation, I get the following…
pinglock
  • 982
  • 2
  • 12
  • 30
0
votes
1 answer

Read AudioUnit property (kAudioUnitProperty_SupportedChannelLayoutTags) return error: kAudioUnitErr_InvalidElement

I'm trying to read information from AudioUnit: var value = AudioChannelLayoutTag() var size = UInt32(MemoryLayout.size) let status = AudioUnitGetProperty(audioUnit, kAudioUnitProperty_SupportedChannelLayoutTags,…
Alino
  • 153
  • 1
  • 9
0
votes
1 answer

initialize audiounit with kAudioFormatiLBC

i'm trying to initialize an AudioUnit to record audio using ilbc. Unfortunatly i need to use ilbc as codec and i cannot choose a different one. after reading the documentation and forums I found that the correct stream descriptor for using ilbc…
Alex
  • 385
  • 2
  • 11
0
votes
0 answers

AU host crashes in IOThread in macOS 11 and later

I've problem with an AU host (based on Audio Toolbox/Core Audio, not AVFoundation) when running on macOS 11 or later and Apple Silicon – it crashes after some operations in GUI. The weird is, it crashes in IOThread. Could this be caused by some…
0
votes
1 answer

Mixing and equalizing multiple streams of compressed audio on iOS

What I'm trying to do is exactly as the title says, decode multiple compressed audio streams/files - it will be extracted from a modified MP4 file - and do EQ on them in realtime simultaneously. I have read through most of Apple's docs. I have tried…
WanderingInLimbo
  • 287
  • 3
  • 12
0
votes
1 answer

Audio Unit RemoteIO Setting interleaved float gives kAudioUnitErr_FormatNotSupported

I am working with Audio Unit RemoteIO's to obtain a low latency audio output. My problem is AFAIK audio unit only accepts several audio formats depending on the hardware. My problem is I have a C++ DSP Sound engine and it works with float…
cs guy
  • 926
  • 2
  • 13
  • 33
0
votes
1 answer

AVAudioUnitTimePitch on mic inputNode

I'm trying to pitch-shift the microphone input in my AVAudioEngine pipeline. I install a tap on the last node in my input chain and write buffers to file. I've tried to use AVAudioUnitTimePitch, but it seems to crash when I use it on my inputNode,…
Cloov
  • 538
  • 1
  • 3
  • 15
0
votes
1 answer

Presentation time of Audio buffer and Video buffer are not equal

I'm trying to create an app that does live Video & Audio recording, using AVFoundation. Also using AVAssetWriter I'm writing the buffers to a local file. For the Video CMSampleBuffer I'm Using the AVCaptureVideoDataOutputSampleBufferDelegate output…
YYfim
  • 1,402
  • 1
  • 9
  • 24
0
votes
0 answers

iOS,Audio resampling from 48K to 16K via AudioUnit

I have been trying to resample my live PCM mono-channel, 48000 sample rate to 16000 sample rate mono-channel using AudioUnit or AudioConverterRef but i am unsuccessful on both of them. I have looked on the following resources but don't find them…
Muhammad Faizan
  • 353
  • 4
  • 15
0
votes
1 answer

MAC audioUnit AudioComponentInstanceDispose crash

the audio unit subType is kAudioUnitSubType_VoiceProcessingIO, and use kAudioOutputUnitProperty_CurrentDevice to set Device ID for the audio unit OSStatus result = AudioOutputUnitStop(audio_unit); result = AudioUnitUninitialize(audio_unit); result =…
as.a.bell
  • 21
  • 2