Re: Detect microphone

2008-11-10 Thread Kyle Sluder
On Mon, Nov 10, 2008 at 6:44 AM, chaitanya pandit <[EMAIL PROTECTED]> wrote: > 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. Electrically there's n

Re: Detect microphone

2008-11-10 Thread chaitanya pandit
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

Re: Detect microphone

2008-11-10 Thread Graham Cox
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? Also, do you know whether the Mac Mini can actually physically detect whether a microphone is plugged into the line-in

Re: Detect microphone

2008-11-10 Thread chaitanya pandit
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(kAudioHardwarePropertyDefau

Re: Detect microphone

2008-11-10 Thread Kyle Sluder
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

Detect microphone

2008-11-09 Thread chaitanya pandit
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