Changeset 6401 in orxonox.OLD for branches/avi_play/src/subprojects/importer
- Timestamp:
- Jan 3, 2006, 7:47:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/subprojects/importer/movie_player_test.cc
r6382 r6401 22 22 23 23 MoviePlayer* movie_player; 24 float start_time;25 24 26 25 void Framework::moduleInit(int argc, char** argv) … … 34 33 35 34 movie_player = new MoviePlayer(argv[1]); 35 36 36 37 movie_player->printInformation(); 37 38 //start_time = atoi(argv[2]);39 start_time = 0;40 38 } 41 39 … … 48 46 { 49 47 case SDLK_1: 50 movie_player->start( start_time);48 movie_player->start(0); 51 49 break; 52 50 case SDLK_2: … … 60 58 break; 61 59 case SDLK_9: 62 movie_player->set Speed(movie_player->getSpeed() - 0.5);63 PRINTF(0)(" speed: %f\n", movie_player->getSpeed());60 movie_player->setFPS(movie_player->getFPS() - 1); 61 PRINTF(0)("fps: %0.2f\n", movie_player->getFPS()); 64 62 break; 65 63 case SDLK_0: 66 movie_player->set Speed(movie_player->getSpeed() + 0.5);67 PRINTF(0)(" speed: %f\n", movie_player->getSpeed());64 movie_player->setFPS(movie_player->getFPS() + 1); 65 PRINTF(0)("fps: %0.2f\n", movie_player->getFPS()); 68 66 break; 69 67 }
Note: See TracChangeset
for help on using the changeset viewer.