There’s a way to find out how long an event lasts, but is there a way to find out how far through a playing event we are e.g. an equivalent of Channel::getPosition for events (I know it can’t be the same since an event can use multiple channels).
- crouton asked 12 years ago
If you could do that, that would be great Brett. My main reason for needing this is really just to know when an event is about to finish e.g. so I can start preloading the next music when the playing music is coming to an end, but it would also be useful simply to know how much time has elapsed in some cases. The non-event code has
with a choice of timeunits, although ms would be ideal if it’s that accurate internally.
Just a suggestion, but the easiest/best solution may be to add a "positionms" parameter to the EVENT_INFO structure, as that’s where I’m getting "lengthms" from anyway. It has "channelsplaying" and "instancesactive" so I guess that’s updated regularly/every update.
Can I bump this?
It appears that (in 00041404/Xbox360) positionms does not account for the time spent during pausing of the [i:1j21evq7]category[/i:1j21evq7] that the event is in. Is that true?
Is there a way to get an accurate position of a streaming event?
- brak answered 10 years ago
I agree this would be handy.
In our current engine, I added an option to query the position of an event by digging into it and returning the position of the first channel I find. It’s more accurate than Event:getPosition, and we’re fortunate that the only places we need this behavior is in simple Events where the position of the first channel is the same as the position of the Event.
- audiodev answered 10 years ago
Please login first to submit.