Displaying 1 result from an estimated 1 matches for "millisecondstonextevent".
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
...X specific files separately at first, but it would be nice to be able
to use the repository at 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...