0
0

If working with Events, the only (?) way to make a query for time position is to get it through Channel class. but this has to be done by parsing the channel groups (and sub groups if any).
this process imho includes too much overhead (loops, multiple if checks etc…). what i’m wondering is, under what conditions is it safe to cache the channel pointer, to speed up position query? if the event is single shot, nonloopable, one sound only, is it safe to cache it when event starts?

or perhaps any other simpler way to achive this?

  • You must to post comments
0
0

If you use Event::getInfo, there are positionms and lengthms parameters in the EVENT_INFO structure that you get back. This might be what you want (maybe not at the accuracy you’re requiring).

  • You must to post comments
0
0

hmmm, would have sworn that i checked that…
missed it probably…

tnx, ms precision is enough

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.