Re: Detect microphone
Re: Detect microphone
- Subject: Re: Detect microphone
- From: chaitanya pandit <email@hidden>
- Date: Mon, 10 Nov 2008 16:45:09 +0530
Well i tried this before but this doesn't work either
- (BOOL)micConnected
{
BOOL retVal = YES;
UInt32 size;
OSStatus err =noErr;
size = sizeof(AudioDeviceID);
AudioDeviceID inputDeviceID;
err =
AudioHardwareGetProperty(kAudioHardwarePropertyDefaultInputDevice,
&size,
&inputDeviceID);
if (err)
retVal = NO;
return retVal;
}
On 10-Nov-08, at 4:24 PM, Kyle Sluder wrote:
On Mon, Nov 10, 2008 at 2:45 AM, chaitanya pandit
<email@hidden> wrote:
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"
That would be the line-in jack.
Have you tried asking on the coreaudio-api list?
--Kyle Sluder
_______________________________________________
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