Changeset 6330 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/movie_player.cc
- Timestamp:
- Dec 29, 2005, 1:49:53 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/movie_player.cc
r6325 r6330 82 82 } 83 83 84 void MoviePlayer::start(unsigned int start_ frame)84 void MoviePlayer::start(unsigned int start_time) 85 85 { 86 86 status = PLAY; … … 88 88 fps = media_container->getFPS(); 89 89 90 media_container->gotoFrame(start_ frame);90 media_container->gotoFrame(start_time * fps); 91 91 92 PRINTF(0)("start \n");92 PRINTF(0)("start (start_time: %0.2f)\n", start_time * fps); 93 93 } 94 94 … … 125 125 current_frame = media_container->getFrameNumber(); 126 126 timer += dt; 127 actu el_frame = timer * fps * speed;127 actual_frame = timer * fps * speed; 128 128 129 if(actu el_frame != current_frame)129 if(actual_frame != current_frame) 130 130 { 131 if(actu el_frame - current_frame == 1)131 if(actual_frame - current_frame == 1) 132 132 texture = media_container->getNextFrame(); 133 133 else 134 texture = media_container->skipFrame(actu el_frame - current_frame - 1);134 texture = media_container->skipFrame(actual_frame - current_frame - 1); 135 135 } 136 136 //PRINTF(0)("frame_number: %i\n", media_container->getFrameNumber());
Note: See TracChangeset
for help on using the changeset viewer.