Getting data from microphone
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.