RE: No mic audio coming in on Leopard
RE: No mic audio coming in on Leopard
- Subject: RE: No mic audio coming in on Leopard
- From: "Saad Nader" <email@hidden>
- Date: Wed, 24 Sep 2008 17:53:38 -0700
- Thread-topic: No mic audio coming in on Leopard
I'm using the default input device which in system preferences is set to
the built in microphone of the iMac. It does show the input level go up
if I make noises. The actual call is this:
size = sizeof(AudioDeviceID);
result =
AudioHardwareGetProperty(kAudioHardwarePropertyDefaultInputDevice,
&size, &defaultCaptureDeviceID);
The call to start the device is this:
// add the IO proc
result = AudioDeviceAddIOProc((AudioDeviceID)device->m_deviceID,
gviHardwareCaptureIOProc, device);
if(result != noErr)
{
data->m_capturing = GVFalse;
return GVFalse;
}
// start it
result = AudioDeviceStart((AudioDeviceID)device->m_deviceID,
gviHardwareCaptureIOProc);
if(result != noErr)
{
data->m_capturing = GVFalse;
return GVFalse;
}
Thanks,
------------------------
Saad Nader
Middleware Engineer
Powered By Gamespy
www.poweredbygamespy.com
-----Original Message-----
From: coreaudio-api-bounces+snader=email@hidden
[mailto:coreaudio-api-bounces+snader=email@hidden] On
Behalf Of Jeff Moore
Sent: Wednesday, September 24, 2008 4:24 PM
To: CoreAudio API
Subject: Re: No mic audio coming in on Leopard
What audio device are you using? It sounds like it might be the built-
in digital input without anything plugged in which would yield nothing
but zeros. You also might have the level turned all the way down.
Do you see any levels for the device in the Sound Pref's input panel?
On Sep 24, 2008, at 2:42 PM, Saad Nader wrote:
> Actually it is getting but with all zeros for input data. So the
> device
> IOProc gets added successfully and gets started but data is
> available in
> the proc.
>
>
> Thanks,
> ------------------------
> Saad Nader
> Middleware Engineer
> Powered By Gamespy
> www.poweredbygamespy.com
>
>
> -----Original Message-----
> From: coreaudio-api-bounces+snader=email@hidden
> [mailto:coreaudio-api-bounces+snader=email@hidden] On
> Behalf Of Jeff Moore
> Sent: Wednesday, September 24, 2008 1:44 PM
> To: CoreAudio API
> Subject: Re: No mic audio coming in on Leopard
>
> I need more context about what you are doing and what you expect to
> happen before I can answer your questions. For example, you don't say
> if it is the case that your IOProc is just not getting called or if it
> is getting called by the data is all zeros.
>
> It would also be helpful to know something about what AudioDevice you
> are using.
>
> On Sep 24, 2008, at 1:22 PM, Saad Nader wrote:
>
>> I'm new to Leopard development and found issues with capturing data
>> directly from the mic. My application creates an IOProc for the
>> input device to use it for capturing purposes so that I can feed it
>> back to the output device which is the sound system in this case.
>>
>> So the IOProc for capture has the following signature:
>> static OSStatus gviHardwareCaptureIOProc(AudioDeviceID inDevice,
>> const AudioTimeStamp * inNow,
>> const AudioBufferList *
>> inInputData,
>> const AudioTimeStamp *
>> inInputTime,
>> AudioBufferList *
>> outOutputData,
>> const AudioTimeStamp *
>> inOutputTime,
>> void * inClientData)
>>
>> How can I tell if the device is in some kind of error state or why
>> the parameter inInputData does not have any data for me to capture?
>
>
>
> --
>
> Jeff Moore
> Core Audio
> Apple
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> m
>
> This email sent to email@hidden
--
Jeff Moore
Core Audio
Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
m
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden