@@ -218,7 +218,7 @@ public function setStopTC($_stop){
218218 * @param int $_start
219219 */
220220 public function setStart ($ _start ){
221- $ this ->start = $ _start ;
221+ $ this ->start = round ( $ _start) ;
222222 $ this ->startTC = self ::ms2tc ($ _start );
223223 }
224224
@@ -228,7 +228,7 @@ public function setStart($_start){
228228 * @param int $_stop
229229 */
230230 public function setStop ($ _stop ){
231- $ this ->stop = $ _stop ;
231+ $ this ->stop = round ( $ _stop) ;
232232 $ this ->stopTC = self ::ms2tc ($ _stop );
233233 }
234234
@@ -349,8 +349,8 @@ public function scale($baseTime,$factor = 1){
349349 $ new_start = $ baseTime + (($ this ->getStart () - $ baseTime ) * $ factor );
350350 $ new_stop = $ baseTime + (($ this ->getStop () - $ baseTime ) * $ factor );
351351
352- $ this ->setStart (round ( $ new_start) );
353- $ this ->setStop (round ( $ new_stop) );
352+ $ this ->setStart ($ new_start );
353+ $ this ->setStop ($ new_stop );
354354
355355 return true ;
356356 }
@@ -369,8 +369,8 @@ public function shift($time = 0){
369369 $ start = $ this ->getStart ();
370370 $ stop = $ this ->getStop ();
371371
372- $ this ->setStart (round ( $ start + $ time) );
373- $ this ->setStop (round ( $ stop + $ time) );
372+ $ this ->setStart ($ start + $ time );
373+ $ this ->setStop ($ stop + $ time );
374374
375375 return true ;
376376
0 commit comments