I need to get the exact playback position from an event. I’ve tried ‘positionms’ in Event::getInfo but it is not at all accurate (I guess it just accumulates the time passed to EventSystem::update without taking loading times into account and such).

It seems the only way to go is using Channel::getPosition, but it’s hard to use this for an event since sound definitions can be played anytime during event playback, or one of them can have a pitch other than 1.0, and so on.

So, the only way I can think of is making the assumption that the event only has one sound definition that spans the entire event lifetime and then getting the first event’s channel (even if it is stereo).

Any better/more general idea?


  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.