AudioUnitInitialize returns -66635
AudioUnitInitialize returns -66635
- Subject: AudioUnitInitialize returns -66635
- From: Forrest Heller <email@hidden>
- Date: Wed, 28 Mar 2012 15:59:39 -0600
Dear CoreAudio mailing list,
I am using the kAudioUnitSubType_VoiceProcessingIO AudioUnit. I can successfully initialize the unit, record input and play output, and stop/restart the unit. The trouble comes when I try dispose of the VoiceProcessingIO and create a new one. I get:
2012-03-28 14:22:54.853 VoiceProcesssingIODemo[2175:707] 14:22:54.832 <0x3fa6ece8> AURemoteIO::Initialize failed: -66635 (enable 3, outf< 1 ch, 44100 Hz, Int16> inf< 1 ch, 44100 Hz, Int16>)
Here is the pseudocode to trigger the behavior:
Notes:
-the kAudioUnitSubType_VoiceProcessingIO is the only audio unit in the chain and only audio unit active
-this behavior does not occur with kAudioUnitSubType_RemoteIO (It can be reinitialized without trouble)
initialize() {
AudioComponentInstanceNew
AudioUnitSetProperty ( setup render callbacks, quality, stream formats)
AudioUnitInitialize
}
start() {
AudioOutputUnitStart
}
stop() {
AudioOutputUnitStop
}
uninitialize() {
AudioUnitUnitialize
}
Works:
initialize();
while (1) {
start();
// do stuff
stop();
}
Does not work:
while (1) {
initialize();
start();
//do stuff
stop();
uninitialize();
}
So my question is: Am I missing anything I should be doing to initialize/uninitialize this audio unit? Or do I just leave the audio unit open throughout the lifetime of the app?
*** I have a sample project demonstrating the behavior available on request ***
-Forrest
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden