Logo Search packages:      
Sourcecode: scummvm version File versions

Timestamp Audio::Timestamp::addFrames ( int  frames ) const

Returns a new timestamp, which corresponds to the time encoded by this timestamp with the given number of frames added.

framesnumber of frames to add

Definition at line 128 of file timestamp.cpp.

References _framerateFactor, _numFrames, and normalize().

Referenced by Audio::convertTimeToStreamPos(), Audio::Channel::getElapsedTime(), Audio::SubSeekableAudioStream::readBuffer(), Audio::SubLoopingAudioStream::readBuffer(), and Video::QuickTimeDecoder::seekToTime().

      Timestamp ts(*this);

      // The frames are given in the original framerate, so we have to
      // adjust by _framerateFactor accordingly.
      ts._numFrames += frames * _framerateFactor;

      return ts;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index