Re: Bizarre error in CoreAudio code
Re: Bizarre error in CoreAudio code
- Subject: Re: Bizarre error in CoreAudio code
- From: Elliot Sedegah <email@hidden>
- Date: Wed, 30 Jun 2004 12:50:29 -0700
Hi Chilton,
Have you tried enabling IO *before* setting the current device?
//Enable input on the AUHAL
enableIO = 1;
err = AudioUnitSetProperty(mInputUnit,
kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Input,
1, // input element
&enableIO,
sizeof(enableIO));
On Jun 29, 2004, at 3:29 PM, Chilton Webb wrote:
>
Hi,
>
>
if I use this...
>
>
err =AudioUnitSetProperty(InputUnit,
>
kAudioOutputUnitProperty_CurrentDevice,
>
kAudioUnitScope_Global,
>
0,
>
&inputDevice,
>
sizeof(inputDevice));
>
>
... with the correct DeviceID of a USB mic or the iSight camera, I get
>
the 'kAudioUnitErr_InvalidPropertyValue' as an error. Otherwise, all
>
is fine. Why would that be?
>
>
Thanks,
>
-Chilton
>
_______________________________________________
>
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.
_______________________________________________
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.