Questions tagged [remoteio]
72 questions
17
votes
2 answers
Using VoiceProcessingIO audio unit subtype instead of RemoteIO causes unwanted drop in output volume
I am using RemoteIO in my voice chat application. To enable echo canceling, I changed "kAudioUnitSubType_RemoteIO" to "kAudioUnitSubType_VoiceProcessingIO" after setting "kAudioSessionCategory_PlayAndRecord" as the session type. Now echo canceling…

Sujithra
- 527
- 1
- 6
- 14
11
votes
2 answers
Select Back Microphone on iPhone 5
Is there a way for RemoteIO unit to pick up back microphone on iPhone 5 ? I can configure AVAudioSession to choose between front microphone or bottom microphone but I can't find a way to select the back Microphone.
The AVFoundation framework for…

Deepak Sharma
- 5,577
- 7
- 55
- 131
10
votes
4 answers
Recording volume drop switching between RemoteIO and VPIO
In my app I need to switch between these 2 different AudioUnits.
Whenever I switch from VPIO to RemoteIO, there is a drop in my recording volume. Quite a significant drop.
No change in the playback volume though.Anyone experienced this?
Here's…

lppier
- 1,927
- 3
- 24
- 62
8
votes
2 answers
How to control hardware mic input gain/level on iPhone?
My audio-analysis function responds better on the iPad (2) than the iPhone (4). It seems sensitive to softer sounds on the iPad, whereas the iPhone requires much louder input to respond properly. Whether this is because of mic placement, different…

buildsucceeded
- 4,203
- 4
- 34
- 72
6
votes
1 answer
How to Correctly Destroy ToneUnit after Tone Fades Out?
I'm generating tones on iPhone using AudioUnits based on Matt Gallagher's classic example. In order to avoid the chirps and clicks at the beginning/end, I'm fading the amplitude in/out in the RenderTone callback. I'd like to destroy the ToneUnit at…

JohnK
- 6,865
- 8
- 49
- 75
5
votes
1 answer
Core Audio iOS: Retrieving the past & future timestamps for captured & to-be-rendered samples
Question
I have a very simple iOS Core Audio application with the following structure:
Remote I/O Unit Input Bus --> Render Callback --> Remote I/O Unit Output Bus
The render callback function, invoked by the Remote I/O output bus, pulls samples…

Andy Barnard
- 696
- 1
- 5
- 15
5
votes
1 answer
Choose between built in mic and headset in iOS
We are developing an app that needs to change the audio route in iOS. We need to get some information from the mic input and then change to the internal mic of the device to record ambient sound.
We have seen 2 topics from these pages: Forcing…

the_moon
- 553
- 1
- 7
- 21
4
votes
2 answers
Error from registration server when publishing audio unit
I'm trying to publish an AudioUnit generator on iOS. When I call
- (void)publishOutputAudioUnit {
AudioComponentDescription desc = { kAudioUnitType_RemoteGenerator, 'anap', 'cwcw', 0, 0 };
OSStatus status = AudioOutputUnitPublish(&desc,…

buildsucceeded
- 4,203
- 4
- 34
- 72
4
votes
0 answers
Airplay output from RemoteIO pass through
To prove a concept I am trying to output the iDevice microphone over Airplay. I have modified the AurioTouch code to provide the pass through, and it works fine using Airplay Mirroring from 4S / iPad 2 to Apple TV.
However, when I try to use…

thf_dave
- 383
- 3
- 7
4
votes
1 answer
recording against a metronome of set length using remote IO
I was able to create the exact functionality I wanted to avaudioplayer and avaudiorecorder but of course experienced latency problems. So after reading pretty much every article on the web and reviewing stacks of sample code, I'm still not sure how…

the-a-train
- 1,123
- 13
- 32
3
votes
2 answers
Really simple wave synth/table in ios
I want to make a really simple synth.
In short, i want to play a wav file, and have it loop at certain points until touch is released.
I am looking for some example code, (doesn't need to be free).
Sorry for such a basic question, i have been…

user1054094
- 31
- 1
3
votes
0 answers
iOS 16 RemoteIO: Input data proc returned inconsistent 2 packets
I am getting an error in iOS 16. This error doesn't appear in previous iOS versions.
I am using RemoteIO to playback live audio at 4000 hz. The error is the following:
Input data proc returned inconsistent 2 packets for 186 bytes; at 2 bytes per…

ndr
- 52
- 5
3
votes
2 answers
AudioUnitRender Error -50 meaning
I get an Error -50 in AudioUnitRender call. My Audio Unit is simply a RemoteIO unit getting samples from the mic. What is the meaning of error -50?
let status = AudioUnitRender(controller.audioUnit!, ioActionFlags, inTimeStamp, inBusNumber,…

Deepak Sharma
- 5,577
- 7
- 55
- 131
3
votes
1 answer
Publishing iOS Audio Unit
I'm trying to make an inter-app audio iOS app and it looks like I'm having trouble the AudioOutputUnitPublish method. Here's the method:
- (void)publishOutputAudioUnit {
AudioComponentDescription desc = {kAudioUnitType_RemoteInstrument,
…

yun
- 1,243
- 11
- 30
3
votes
1 answer
Error when trying to use published Inter-App Audio app in Garageband
My app is registered with the system as providing Inter-App Audio (thanks to this question). But when I select it in the Garageband Inter-App Audio instrument picker, I get this message in a UIAlertView:
"App Not Available. The Inter-App Audio app…

buildsucceeded
- 4,203
- 4
- 34
- 72