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

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


  • Follow-Ups:
    • Re: Detect microphone
      • From: Graham Cox <email@hidden>
References: 
 >Detect microphone (From: chaitanya pandit <email@hidden>)
 >Re: Detect microphone (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Inviting to comment on Cocoa categories
  • Next by Date: Re: Inviting to comment on Cocoa categories
  • Previous by thread: Re: Detect microphone
  • Next by thread: Re: Detect microphone
  • Index(es):
    • Date
    • Thread