Re: synchronizing iMic I/O
Re: synchronizing iMic I/O
- Subject: Re: synchronizing iMic I/O
- From: email@hidden
- Date: Wed, 16 Jul 2003 14:10:01 EDT
Is the anchor when initializing so that when you call AudioDeviceRead(), the
inStartTime will be a valid time? (the buffer requested will actually be in
the devices buffers) Isn't there a possiblity the time you requested won't
be there? The description of a valid range for AudioDeviceRead() in
AudioHardware.h does not make sense (to me anyways).
current time - max buf size - safety offset to current time - safety offset
What is "the safety offset to the current time" ?
// The valid range of time that can be read is from the current time
minus
// the maximum buffer size minus the safety offset to the current time
mins
// the safety offset.
thanks
Jeff
In a message dated 07/14/03 10:10:38 PM,
email@hidden writes:
>
The mechanism I use (suggested by Jeff Moore) is to establish an 'anchor
>
time' using one of the Device 'GetTime' routines (sorry I don't recall
>
the full prototype) during initialization.
>
>
I then increment that time by 'n' frames (buffer size) in each IOProc
>
(for the output device) and call AudioDeviceRead() with the updated time.
_______________________________________________
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.