• 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: No mic audio coming in on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No mic audio coming in on Leopard


  • Subject: Re: No mic audio coming in on Leopard
  • From: Jeff Moore <email@hidden>
  • Date: Wed, 24 Sep 2008 18:02:33 -0700

If that's all your doing, then clearly, there is more to the puzzle than this. When your IOProc is called, you are getting the data straight from the hardware. For it to be all zeroes implies to me that either the data is really all zeroes, you've turned the volume all the way down, or muted the hardware. Either that, or your test for whether or not there are any non-zero samples has some issues.

I'd say broken hardware is also possibility but the fact that the sound prefs is getting a level says otherwise.

On Sep 24, 2008, at 5:53 PM, Saad Nader wrote:

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: This email sent to email@hidden
References: 
 >RE: No mic audio coming in on Leopard (From: "Saad Nader" <email@hidden>)
 >Re: No mic audio coming in on Leopard (From: Jeff Moore <email@hidden>)
 >RE: No mic audio coming in on Leopard (From: "Saad Nader" <email@hidden>)
 >Re: No mic audio coming in on Leopard (From: Jeff Moore <email@hidden>)
 >RE: No mic audio coming in on Leopard (From: "Saad Nader" <email@hidden>)

  • Prev by Date: RE: No mic audio coming in on Leopard
  • Next by Date: deprecated function
  • Previous by thread: RE: No mic audio coming in on Leopard
  • Next by thread: deprecated function
  • Index(es):
    • Date
    • Thread