aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2011-03-21 18:27:49 -0400
committerMatthew Hoops2011-03-21 18:27:49 -0400
commitcdc4c3bfa88a3d94d3c75c9766e97fd87053241f (patch)
treebd9c91e2fd3afd7d8e9f500fb141e22e7211ffc8 /engines
parent94c27e4657279aaae8c98aee58477265625b7a27 (diff)
downloadscummvm-rg350-cdc4c3bfa88a3d94d3c75c9766e97fd87053241f.tar.gz
scummvm-rg350-cdc4c3bfa88a3d94d3c75c9766e97fd87053241f.tar.bz2
scummvm-rg350-cdc4c3bfa88a3d94d3c75c9766e97fd87053241f.zip
MOHAWK: Add a getDuration() function to the VideoManager
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/video.cpp5
-rw-r--r--engines/mohawk/video.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp
index 9bf202083a..f481b5ceb2 100644
--- a/engines/mohawk/video.cpp
+++ b/engines/mohawk/video.cpp
@@ -490,6 +490,11 @@ uint32 VideoManager::getElapsedTime(VideoHandle handle) {
return _videoStreams[handle]->getElapsedTime();
}
+uint32 VideoManager::getDuration(VideoHandle handle) {
+ assert(handle != NULL_VID_HANDLE);
+ return _videoStreams[handle]->getDuration();
+}
+
bool VideoManager::endOfVideo(VideoHandle handle) {
assert(handle != NULL_VID_HANDLE);
return _videoStreams[handle].endOfVideo();
diff --git a/engines/mohawk/video.h b/engines/mohawk/video.h
index 6b9cfa25d2..e65629a1ec 100644
--- a/engines/mohawk/video.h
+++ b/engines/mohawk/video.h
@@ -104,6 +104,7 @@ public:
int32 getCurFrame(VideoHandle handle);
uint32 getFrameCount(VideoHandle handle);
uint32 getElapsedTime(VideoHandle handle);
+ uint32 getDuration(VideoHandle videoHandle);
bool endOfVideo(VideoHandle handle);
void setVideoBounds(VideoHandle handle, Audio::Timestamp start, Audio::Timestamp end);
void seekToTime(VideoHandle handle, Audio::Timestamp time);