Displaying 1 result from an estimated 1 matches for "_nexteventtimer".
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
...t some point in the future...
2. I also have a question about timing. Here is my current timer code;
it's written in Objective-C but should be quite readable:
- (void)scheduleNextEvent
{
glong millisecondsToNextEvent = swfdec_player_get_next_event(_private-
>_player);
[_private->_nextEventTimer release];
_private->_nextEventTimer = nil;
if (millisecondsToNextEvent == -1) // nothing's going on, so do nothing
return;
else if (millisecondsToNextEvent == 0) // we need to trigger the next
event immediately
{
swfdec_player_advance(_private->_player, millisecondsToNextEvent...