Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: David Duncan <email@hidden>
- Date: Tue, 8 Jun 2004 07:24:20 -0400
On Jun 8, 2004, at 12:15 AM, Chilton Webb wrote:
OSStatus err = noErr;
AudioUnit AUHAL;
UInt32 enableIO = 1;
err = OpenDefaultAudioOutput(&AUHAL);
err = AudioUnitSetProperty(AUHAL, kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Input,1, &enableIO, enableIO);
When I run this, I get -10879 (kAudioUnitErr_InvalidProperty) as the
error after the last line above. Why? I want to use that AUHAL as an
input as well as output device.
At the very least, there are 2 problems: 1) Your using the Default
Output Unit, not the HAL Output Unit and 2) Your using the v1 audio
unit. You need the v2 audio unit (which requires you to do the
component manager calls yourself -- aka OpenAComponent)
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: | |
| >(no subject) (From: Chilton Webb <email@hidden>) |