MOHAWK: Allow changing video rates
getVideoDuration now returns an Timestamp
This commit is contained in:
parent
f889457d3d
commit
fdad5ec7b4
4 changed files with 16 additions and 10 deletions
|
@ -493,9 +493,9 @@ uint32 VideoManager::getTime(VideoHandle handle) {
|
|||
return _videoStreams[handle]->getTime();
|
||||
}
|
||||
|
||||
uint32 VideoManager::getDuration(VideoHandle handle) {
|
||||
Audio::Timestamp VideoManager::getDuration(VideoHandle handle) {
|
||||
assert(handle != NULL_VID_HANDLE);
|
||||
return _videoStreams[handle]->getDuration().msecs();
|
||||
return _videoStreams[handle]->getDuration();
|
||||
}
|
||||
|
||||
bool VideoManager::endOfVideo(VideoHandle handle) {
|
||||
|
@ -536,6 +536,11 @@ void VideoManager::setVideoLooping(VideoHandle handle, bool loop) {
|
|||
_videoStreams[handle].loop = loop;
|
||||
}
|
||||
|
||||
void VideoManager::setVideoRate(VideoHandle handle, const Common::Rational &rate) {
|
||||
assert(handle != NULL_VID_HANDLE);
|
||||
_videoStreams[handle]->setRate(rate);
|
||||
}
|
||||
|
||||
void VideoManager::pauseMovie(VideoHandle handle, bool pause) {
|
||||
assert(handle != NULL_VID_HANDLE);
|
||||
_videoStreams[handle]->pauseVideo(pause);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue