From 07aaed5659e352db1ddece44e715a854159d58ec Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 30 Jul 2017 17:30:50 +0200 Subject: MOHAWK: Myst: Set the mixer sound type to SFX for videos Also simplify video filename construction. --- engines/mohawk/video.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/mohawk/video.h') diff --git a/engines/mohawk/video.h b/engines/mohawk/video.h index 07dc128641..1f8b93d467 100644 --- a/engines/mohawk/video.h +++ b/engines/mohawk/video.h @@ -23,6 +23,7 @@ #ifndef MOHAWK_VIDEO_H #define MOHAWK_VIDEO_H +#include "audio/mixer.h" #include "audio/timestamp.h" #include "common/array.h" #include "common/list.h" @@ -240,7 +241,7 @@ public: virtual ~VideoManager(); // Generic movie functions - VideoEntryPtr playMovie(const Common::String &filename); + VideoEntryPtr playMovie(const Common::String &filename, Audio::Mixer::SoundType soundType = Audio::Mixer::kPlainSoundType); VideoEntryPtr playMovie(uint16 id); bool updateMovies(); void pauseVideos(); @@ -263,7 +264,7 @@ protected: // Utility functions for managing entries VideoEntryPtr open(uint16 id); - VideoEntryPtr open(const Common::String &fileName); + VideoEntryPtr open(const Common::String &fileName, Audio::Mixer::SoundType soundType); VideoList::iterator findEntry(VideoEntryPtr ptr); -- cgit v1.2.3