diff options
author | Bastien Bouclet | 2017-07-30 17:30:50 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-07-30 17:42:01 +0200 |
commit | 07aaed5659e352db1ddece44e715a854159d58ec (patch) | |
tree | 03dfa6ebbfe81c60b79d7bbc55fa9295f8b2f4a9 /engines/mohawk/myst.h | |
parent | 4fee9a492ea9db7fd3c7830e2e07b7d79808bbdc (diff) | |
download | scummvm-rg350-07aaed5659e352db1ddece44e715a854159d58ec.tar.gz scummvm-rg350-07aaed5659e352db1ddece44e715a854159d58ec.tar.bz2 scummvm-rg350-07aaed5659e352db1ddece44e715a854159d58ec.zip |
MOHAWK: Myst: Set the mixer sound type to SFX for videos
Also simplify video filename construction.
Diffstat (limited to 'engines/mohawk/myst.h')
-rw-r--r-- | engines/mohawk/myst.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/mohawk/myst.h b/engines/mohawk/myst.h index f9823e5291..3f756faee0 100644 --- a/engines/mohawk/myst.h +++ b/engines/mohawk/myst.h @@ -63,7 +63,7 @@ enum { }; // Myst Stacks -enum { +enum MystStack { kChannelwoodStack = 0, // Channelwood Age kCreditsStack, // Credits kDemoStack, // Demo Main Menu @@ -181,8 +181,6 @@ public: Common::SeekableReadStream *getResource(uint32 tag, uint16 id) override; Common::Array<uint16> getResourceIDList(uint32 type) const; - Common::String wrapMovieFilename(const Common::String &movieName, uint16 stack); - void changeToStack(uint16 stack, uint16 card, uint16 linkSrcSound, uint16 linkDstSound); void changeToCard(uint16 card, TransitionType transition); uint16 getCurCard() { return _curCard; } @@ -228,8 +226,10 @@ public: void setCacheState(bool state) { _cache.enabled = state; } bool getCacheState() { return _cache.enabled; } - void playMovieBlocking(const Common::String &filename, uint16 x, uint16 y); - void playMovieBlockingCentered(const Common::String &filename); + VideoEntryPtr playMovie(const Common::String &name, MystStack stack); + VideoEntryPtr findVideo(const Common::String &name, MystStack stack); + void playMovieBlocking(const Common::String &name, MystStack stack, uint16 x, uint16 y); + void playFlybyMovie(const Common::String &name); void waitUntilMovieEnds(const VideoEntryPtr &video); void playSoundBlocking(uint16 id); @@ -269,6 +269,9 @@ private: void loadResources(); void drawResourceRects(); void checkCurrentResource(); + void updateActiveResource(); + + Common::String wrapMovieFilename(const Common::String &movieName, uint16 stack); /** Area of type kMystAreaHover being hovered by the mouse, if any */ MystAreaHover *_hoverResource; @@ -291,8 +294,6 @@ private: uint16 _mainCursor; // Also defines the current page being held (white, blue, red, or none) void pauseEngineIntern(bool) override; - - void updateActiveResource(); }; template<class T> |