SampleTime
SampleTime
- Subject: SampleTime
- From: email@hidden
- Date: Wed, 12 Dec 2001 13:15:28 -0500
Anyone -
I have noticed what I think is a problem with timestamps in the IOProcs and the
AudioDeviceGetCurrentTime -
If I stop and start the same device very rapidly the inNow time in the IOProc
and the AudioDeviceGetCurrentTime seem to continue from the last IO? I can make
it happen by hitting play-stop-play in rapid succession... After the stop I
expect the next inNow.mSampleTime to be close to 0, but in this case it
continues from the previous point. If I wait for a second or two before playing
again I get the expected behavior... I am depending on accurate timestamps to
determine my relative sample position in my media. Has anyone seen this? When I
stop the device I always remove the IOProc as well. I have added test code to
check the isRunning property and it comes back as stopped. Is the
AudioDeviceStop an asyncronous command? How can I tell if it is really
stopped???
Any help would be appreciated????
Thanks
Jim Dolan.