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

AudioUnitRender hang on AUSampler

I have a music-making app that uses AUSampler & AURemoteIO units to play back user-defined notes. I'm having an issue where after some use, the call to AudioUnitRender on the sampler never returns, hanging the audio thread and silencing the audio…
Jayson
  • 1,689
  • 14
  • 26
0
votes
1 answer

Help with live-updating sound on the iPhone

My question is a little tricky, and I'm not exactly experienced (I might get some terms wrong), so here goes. I'm declaring an instance of an object called "Singer". The instance is called "singer1". "singer1" produces an audio signal. Now, the…
wyager
  • 101
  • 8
0
votes
1 answer

Synchronize AudioUnit callback with NSOutputStream

I'm recording audio using an Audio Unit, then writing that data into an NSOutputStream which is part of a bound pair that I'm using to POST that data over HTTP. My problem is the audio unit recording callback and the NSOutputStream hasSpaceAvailable…
Roshan Krishnan
  • 187
  • 1
  • 3
  • 13
0
votes
0 answers

How to implement digital filters in Core Audio?

I have a question about the implementation of digital filters in CoreAudio. I'm in big trouble because it is a few weeks I'm trying to understand how to implement them. The basic idea is this: while I talk to the iPhone's microphone, my voice is…
0
votes
1 answer

How to get preferred channel layout from CoreAudio

I was wondering if anyone know how to get preferred channel layout from CoreAudio. I try to use kAudioDevicePropertyPreferredChannelLayout to get the channel label. However, it always shows kAudioChannelLabel_Unknown value. Is there something driver…
CMChang
  • 51
  • 5
0
votes
2 answers

How to remove the noise from the audio coming from socket that uses audio unit in iOS?

I am trying to play the audio coming from socket. But the audio has more noise (the origional sound is not coming) I am using seperate class for speaker and want to filter the noise from the audio. My code is OSStatus WNSpeakerOutputProc(void*…
0
votes
1 answer

Xcode Audio Unit v3 template fails validation

I've created a little test app with an Audio Unit extension via the following steps: Open Xcode and create a new "Cocoa Application" project Select File -> New -> Target Select "Audio Unit extension" Fill out the form with reasonable values (I've…
Taylor
  • 5,871
  • 2
  • 30
  • 64
0
votes
2 answers

Playing audio from AudioBuffer->mdata in AudioUnit playback callback

Folks i have been searching and trying to resolve following problem since a whole day. No success yet Ok, So i have been using apple sample code project name WiTap to communicate b/w two devices over wifi using NSInputStreams and NSOutputStreams I…
Umair
  • 400
  • 5
  • 19
0
votes
1 answer

iOS: record dynamic audio playback

I'm trying to record audio output that is being dynamically generated out of local audio files. So let's say I have one audio file "drums.mp3", and I'm currently playing it in a loop like this: var drumSoundEffect: AVAudioPlayer! var repeatTimer:…
user2549803
  • 333
  • 1
  • 3
  • 15
0
votes
1 answer

How to grab audio buffers before sending them to speaker?

I am a noob in Core Audio, AudioUnit framework and I don't have much knowledge about it so please bear it with me. I have a requirement where I need to access the live stream coming through a remote call using webRTC. In webRTC framework there is no…
Jassi
  • 537
  • 8
  • 21
0
votes
0 answers

ios Core audio: AudioFilePlayer Unit render callback

I am trying to create a render callback for my AudioFilePlayer Unit. I created two audio units: static AudioComponentInstance audioUnit; // AudioFilePlayer static AudioComponentInstance rioUnit; // RemoteIO Unit Audio units init…
jangofett
  • 59
  • 1
  • 12
0
votes
1 answer

Core audio: file playback render callback function

I am using RemoteIO Audio Unit for audio playback in my app with kAudioUnitProperty_ScheduledFileIDs. Audio files are in PCM format. How can I implement a render callback function for this case, so I could manually modify buffer samples? Here is my…
jangofett
  • 59
  • 1
  • 12
0
votes
1 answer

Changing the volume of only my app

I am using apples AudioUnit to create sound. I was wondering if it is possible to control the volume of only my audio output and not the whole system audio with MPVolumeView. If anyone could provide an answer, or a hint where to look i would very…
Torbilicious
  • 467
  • 1
  • 4
  • 17
0
votes
2 answers

CoreAudio: AudioUnit can neither be stopped nor uninitialized

I wrote a command line c tool generating an sine wave and playing it using CoreAudio on the default audio output. I am initializing a AURenderCallbackStruct and initialize an AudioUnit using AudioUnitInitialize (as already discussed in this forum).…
Stefan H
  • 1
  • 2
0
votes
2 answers

kAudioUnitType_MusicEffect as AVAudioUnit

I'd like to use my kAudioUnitType_MusicEffect AU in an AVAudioEngine graph. So I try to call: [AVAudioUnitMIDIInstrument instantiateWithComponentDescription:desc options:kAudioComponentInstantiation_LoadInProcess completionHandler: but that just…
Taylor
  • 5,871
  • 2
  • 30
  • 64