search for: triggernextevent

Displaying 1 result from an estimated 1 matches for "triggernextevent".

2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
...oNextEvent; fMillisecondsToNextEvent /= 1000000.0; // translate to seconds so we can use NSTimer _private->_timeOfLastTimer = CFAbsoluteTimeGetCurrent(); _private->_nextEventTimer = [[NSTimer scheduledTimerWithTimeInterval:fMillisecondsToNextEvent target:self selector:@selector(triggerNextEvent:) userInfo:nil repeats:NO] retain]; } } - (void)triggerNextEvent:(NSTimer *)timer { CFAbsoluteTime timeElapsed = CFAbsoluteTimeGetCurrent()-_private- >_timeOfLastTimer; swfdec_player_advance(_private->_player, timeElapsed*1000000.0); if (swfdec_player_is_initialized(_private->_pl...