Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to know whether the data is ready or not while reading from soundcard



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.


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.