SrtParser\srtFileEntry::scale PHP Method

scale() public method

public scale ( $baseTime, $factor = 1 )
    public function scale($baseTime, $factor = 1)
    {
        if ($factor == 1) {
            return;
        }
        $new_start = $baseTime + ($this->getStart() - $baseTime) * $factor;
        $new_stop = $baseTime + ($this->getStop() - $baseTime) * $factor;
        $this->setStart($new_start);
        $this->setStop($new_stop);
        return true;
    }