Hi all,
we're seeing a problem in Logic Pro 7.2 and later that we didn't see previously (in 7.1.1, anyway). We also have the same problem in Digital Performer. The issue is with the values returned from CallHostTransportState.
In the problem hosts, when looping a selection of audio, the sample position value continues to grow, even when looping back in time. The host obviously knows what the "real" time is, because the cursor and the time display both reset to the start of the loop when the end is reached. But the value we get when querying for the time just continues to grow.
I thought there might be a way to use the "looping" parameter to see if we're jumping back in time, but apparently that only tells us we're in a loop, not that we're actually jumping backwards at that very moment. It's always TRUE when looping is active.
Does anyone know if there's a reliable way to detect that we're jumping back in time, and somehow account for this when displaying our own time information so that what we show the user matches what the host is showing? Currently, in these hosts, our own time information display and cursor just keep growing and growing and...
Thanks, Howard
|