• 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
Detect microphone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Detect microphone
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Cocoa and NSLog
  • Next by Date: Re: NSGraphiteControlTint in app
  • Previous by thread: Re: Help with this crashing method
  • Next by thread: Re: Detect microphone
  • Index(es):
    • Date
    • Thread