On 10-Nov-08, at 4:55 PM, Graham Cox wrote:


On 10 Nov 2008, at 10:15 pm, chaitanya pandit wrote:

Well i tried this before but this doesn't work either


"Doesn't work" covers a multitude of sins; *what* doesn't work?

Oh, i was assuming that the AudioHardwareGetProperty method will return an error if there is no input device connected, but in this case as the mac mini has "Built in input" as the default input device, this method fails to detect if the MIcrophone is connected.

Also, do you know whether the Mac Mini can actually physically detect whether a microphone is plugged into the line-in socket? Maybe it can't - that would be a hardware feature. If the hardware doesn't know, the software sure won't.

I tried to record an audio with Quicktime player, it didn't warn me about absence of a microphone (Which ideally it should have) so i guess there really isn't a way to know of a connected mic.

--Graham

_______________________________________________

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