TN2091 code not working with iSight or USB mic
TN2091 code not working with iSight or USB mic
- Subject: TN2091 code not working with iSight or USB mic
- From: Chilton Webb <email@hidden>
- Date: Sun, 27 Jun 2004 19:59:07 -0500
Hi,
In Listing 3 of TN2091
(<
http://developer.apple.com/technotes/tn2002/tn2091.html#TAN53>), the
following code is suggested to obtain the current input device, and
tell an AudioOutputUnit to use it ...
----------------
AudioDeviceID inputDevice;
err =
AudioHardwareGetProperty(kAudioHardwarePropertyDefaultInputDevice,
&size,
&inputDevice);
err =AudioUnitSetProperty(InputUnit,
kAudioOutputUnitProperty_CurrentDevice,
kAudioUnitScope_Global,
0,
&inputDevice,
sizeof(inputDevice));
---------------
... now, when I have the internal mic set to be the default input
device, all is well at this step, with noErr returned. But if I select
a USB mic or the input on my iSight, it returns
'kAudioUnitErr_InvalidPropertyValue' as an error.
So what do I do now? Can I use the AudioOutputUnit with an iSight
camera or a USB mic?
Thank you,
-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.