OSStatus -10877 from setting kAudioOutputUnitProperty_EnableIO
OSStatus -10877 from setting kAudioOutputUnitProperty_EnableIO
- Subject: OSStatus -10877 from setting kAudioOutputUnitProperty_EnableIO
- From: Joel Reymont <email@hidden>
- Date: Wed, 11 Feb 2009 12:44:31 +0000
I'm running this code in the iPhone simulator.
Any suggestions on why setting kAudioOutputUnitProperty_EnableIO would
return -10877?
What is -10877, I can't find the description.
Thanks, Joel
---
AudioComponentDescription desc;
desc.componentType = kAudioUnitType_Output;
desc.componentSubType = kAudioUnitSubType_RemoteIO;
desc.componentFlags = 0;
desc.componentFlagsMask = 0;
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
// Get component
AudioComponent inputComponent = AudioComponentFindNext(NULL,
&desc);
// Get audio units
status = AudioComponentInstanceNew(inputComponent, &_audioUnit);
if (status != noErr) {
if (error) *error = [[NSError alloc]
initWithDomain:AudioServerErrorDomain
code:status
userInfo:nil];
return NO;
}
// Enable IO for recording
UInt32 flag = 1;
status = AudioUnitSetProperty(_audioUnit,
kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Input, kInputBus,
&flag, sizeof(flag));
^^^ returns -10877
---
http://tinyco.de
--- Mac & iPhone
_______________________________________________
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