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

Some Audio Unit code (incl. auval) does not work in iTerm

[I've answered my own question below, and for people searching for this issue in the future, I've replaced the question with a summary of the issue.] In iTerm v3.2.8-9, "auval -a" does not find any 3rd-party plugins. It has the same issue with…
0
votes
2 answers

auval: ERROR: Class Data does not have required field: == componentType

Trying to write an AUv3 on macOS. I'm getting the following error from auval: VERIFYING CLASS INFO ERROR: Class Data does not have required field: == componentType It would seem some sort of metadata is misconfigured. What does this mean?
Taylor
  • 5,871
  • 2
  • 30
  • 64
0
votes
0 answers

AVAudioEnvironmentNode crashes when changing its renderingAlgorithm in background mode

I am using AVAudioEnvironmentNode for a simple app. It plays well when the application is on the screen or the device is not idle, but when the device goes idle and renderingAlgorithm is changing, the audio changes into a loud noise and it stops…
mehdi
  • 2,703
  • 1
  • 13
  • 15
0
votes
1 answer

AUAudioUnit getting host sample rate changes

Just a simple quick question, how do I can know about AudioUnit host application changes to sample rate? My custom AUAudioUnit v3 subclass seems not to have any property to observe and AUHostMusicalContextBlock do not provide a sample rate…
Jan Kubny
  • 303
  • 1
  • 8
0
votes
1 answer

How to use a stereo source in 3D Mixer Unit (kAudioUnitSubType_SpatialMixer)?

There are three Audio Unit: equalizerUnit(kAudioUnitSubType_NBandEQ), 3DmixerUnit(kAudioUnitSubType_SpatialMixer), remoteIOUnit(kAudioUnitSubType_RemoteIO). With AUGraph and Nodes (equalizerNode, 3DmixerNode, remoteNode), they are correctly…
Harman
  • 426
  • 8
  • 14
0
votes
1 answer

How to make the left and right channels of iOS AudioUnit output different audio data independently?

I have two different custom audio data, I need to output different audio data for the left and right channels of iOS. Now I can use audiounit to output the same audio data at the same time, but how to control the left channel and the right channel…
jannl
  • 55
  • 5
0
votes
1 answer

Adjust volume of audio stream using AudioUnitSetParameter not works

AudioUnitSetParameter(appBufferContext->unit, kDynamicsProcessorParam_MasterGain, kAudioUnitScope_Output, 0, 0.5 , 0); This line returns -50. What is the meaning of it? Actually I want to adjust volume of steamed Audio packets.
Dipen Desai
  • 237
  • 1
  • 16
0
votes
1 answer

AudioUnit output buffer and input buffer

My question is what should I do when I use real-time time stretch? I understand that the change of rate will change the count of samples for output. For example, if I stretch audio with 2.0 coefficient, the output buffer is bigger (twice). So,…
0
votes
1 answer

How to use Superpowered TimeStretching in realtime in AUInternalRenderBlock

I try to use SuperpoweredTimeStretching in AU render block. For example on one channel for simple code. I don't change speed of audio at this moment (so, I don't need use "circular buffer" or something like this - count of in and out samples in…
Ruslan
  • 67
  • 1
  • 6
0
votes
1 answer

Error in converting AudioBuffer using AudioConverterFillComplexBuffer

I am trying to reduce the buffer size of the recorded Audio data (and later i want to convert it back and play using Audiounit), using AudioConverterFillComplexBuffer, the code i use is given below. - (void)captureOutput:(AVCaptureOutput…
0
votes
0 answers

AUv3 MacOS Instrument, auval failure "Bad Max Frames - Render should fail"

This is the umpteenth time I've tried to create an AUv3 plugin, all with various amounts of success (no complete joy, ever :/ ) It works in the app, but auval fails with Bad Max Frames - Render should fail ERROR: AudioUnitRender should have…
0
votes
1 answer

How to playback audio without using Callback with AudioUnit

I use AudioUnit to record and play audio with 8 KHz samplerate and 8 bits audio sample. I use the example from the following source: https://github.com/fuxx/MicInput The playback part is based on a callback pattern. With this method, I don't have…
AndaluZ
  • 1,410
  • 3
  • 15
  • 33
0
votes
2 answers

AudioUnit noise if there is no output buffer

I am trying to implement playing pcm audio received from remote server via socket. Here was my previous question link. This works fine as I use circular buffer to always feed in the incoming buffer. However I have a problem that there is a huge…
akaiz
  • 131
  • 11
0
votes
1 answer

Memory Leak when using Pointer to AudioUnitSampleType in Struct - calloc

I am coding an audio app for the iphone where I need to use some C code to deal with the audio files. In short, I have a memory leak that is causing the app to crash after so many files have been loaded. The problem is related to a Struct that I…
KeithG
  • 1
  • 1
0
votes
2 answers

app crashes after becoming active, when calling [UIImageView setImage:]

I have an app with callbacks for recording and playing audio. From the recording callback, I call a function to update the GUI: [mainViewController performSelectorOnMainThread:@selector(updateGuiAfterOnset) withObject:nil waitUntilDone:NO]; It…
Itamar Katz
  • 9,544
  • 5
  • 42
  • 74