Re: Bizarre error in CoreAudio code
Re: Bizarre error in CoreAudio code
- Subject: Re: Bizarre error in CoreAudio code
- From: Doug Wyatt <email@hidden>
- Date: Wed, 30 Jun 2004 12:47:28 -0700
You probably have selected an input-only device before enabling input
on the unit ... the error indicates that the device does not have a
current stream format.
How did you open the unit?
Did you set kAudioOutputUnitProperty_EnableIO to true on bus 1, scope
input?
Doug
On Jun 29, 2004, at 15:29, 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.