Changeset 6319 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer
- Timestamp:
- Dec 27, 2005, 3:58:14 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/movie_player.cc
r6317 r6319 83 83 void MoviePlayer::start(unsigned int start_frame) 84 84 { 85 if(status == STOP) 86 //that'd probably do its job if getFrame worked 87 texture = media_container->getFrame(3); 85 88 status = PLAY; 86 89 } … … 88 91 void MoviePlayer::resume() 89 92 { 90 status = PLAY; 93 if(status != STOP) 94 status = PLAY; 91 95 } 92 96 … … 103 107 void MoviePlayer::tick(float time) 104 108 { 105 texture = media_container->getNextFrame(); 109 if(status == PLAY) 110 texture = media_container->getNextFrame(); 106 111 } 107 112 … … 117 122 void MoviePlayer::setSpeed(float speed) 118 123 { 119 124 this->speed = speed; 120 125 } 121 126 122 127 float MoviePlayer::getSpeed() 123 128 { 124 return speed;129 return this->speed; 125 130 } 126 131 127 132 const MP_STATUS MoviePlayer::getStatus() 128 133 { 129 return status;134 return this->status; 130 135 }
Note: See TracChangeset
for help on using the changeset viewer.