Detect microphone
Detect microphone
- Subject: Detect microphone
- From: chaitanya pandit <email@hidden>
- Date: Mon, 10 Nov 2008 13:15:47 +0530
Hi List,
I'm using core audio to record sound, however i want to detect if a
microphone is connected to the computer, how can i do that?
I tried using QTKit to do this:
QTCaptureDevice *soundDevice = [QTCaptureDevice
defaultInputDeviceWithMediaType:QTMediaTypeSound];
BOOL micPresent = [soundDevice isConnected]];
But on my Mac Mini which doesn't have a built in microphone it still
returns YES for isConnected and the device returned is "Built-in input"
Any help would be appreciated,
Thanks,
Chaitanya
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden