Hi,
I'm trying to get the current time of a CAClock in seconds. Seems to
CAClockGetCurrentTime(theClock, kCAClockTimeFormat_Seconds, ¤tTime);
always returns the absolute time of the clock, which is not I want. I want to convert the actual barbeattime to seconds instead. So, I'm getting the beats time this way:
CAClockGetCurrentTime(theClock, kCAClockTimeFormat_Beats, ¤tTime); _seconds = currentTime.time.seconds;
This is cool, but seems the _seconds variable always twice as large then it should. 4 beats at 120 BPM should take 2 seconds, but _seconds variable is 1 second.
Is this an issue, or I missed something?
Thanks,
Tamas |