How to know whether the data is ready or not while reading from soundcard
How to know whether the data is ready or not while reading from soundcard
- Subject: How to know whether the data is ready or not while reading from soundcard
- From: "Xie Kaiduan" <email@hidden>
- Date: Tue, 23 Sep 2003 00:32:59 +0000
Hi, all,
In the Core Audio documentation, on AudioDeviceIOProc, it said that:
"This is a client-supplied routine that the hardware calls to perform an I/O
transaction for a given device. All input and output is presented to the
client simultaneously for processing."
From the example HALPlayFile, I understood that in order to playing some
stored music file, we have to fill the outOutputData buffer of
AudioDeviceIOProc. My question is that, how can I know the data is ready
from the soundcard while I want to read from the soundcard, say, recording
the voice? How to differeniate the silence and the real voice?
Thanks for help,
kaiduan
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
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.