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

Getting data from microphone


  • Subject: Getting data from microphone
  • From: kante easley <email@hidden>
  • Date: Sat, 13 Mar 2004 20:08:11 -0500

Hi,

I have read through AudioHardware.h many times, and I still can't
figure out how to get data from my input AudioDevice. I have the
correct AudioDeviceID, and have all the corresponding information in an
AudioStreamBasicDescription filled in, but I'm lost as to what to do
next.

Which function do I call to get an AudioDataBuffer (with data in it)
from the device. The only function I can find that actually returns a
populated AudioBufferList is AudioDeviceRead, and I read in the
archives that this isn't the best way to do things.

Perhaps my problem is that I don't understand how IOProc's work. In
them I always see examples of code like

memcpy(outOutputData->mBuffers[0].mData,
inInputData->mBuffers[0].mData, size)

but where do the AudioBufferLists outOutputData, and inInputData come
from??? StartAudioDevice only passes a reference to an IOProc, but no
bufferlist. What is calling the IOProc? How do I give it the
outOutputData List?

Thank you for your patience!

Kante Easley
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Getting data from microphone
      • From: Michael Thornburgh <email@hidden>
  • Prev by Date: Revving of CoreAudio SDK
  • Next by Date: Re: Getting data from microphone
  • Previous by thread: Audio Unit Initialization
  • Next by thread: Re: Getting data from microphone
  • Index(es):
    • Date
    • Thread