• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
TN2091 code not working with iSight or USB mic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: how to use hog mode
  • Next by Date: Re: how to use hog mode
  • Previous by thread: Re: how to use hog mode
  • Next by thread: Core Audio SDK 1.3.1 sample code - requirements?
  • Index(es):
    • Date
    • Thread