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 PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to