From f467db5ed23cdaa96fb0601ae1b05853f44e3356 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 12 May 2016 00:32:31 +0200 Subject: GNAP: Add music when game is paused --- engines/gnap/gnap.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/gnap/gnap.h') diff --git a/engines/gnap/gnap.h b/engines/gnap/gnap.h index c7273077a4..2119ad6cac 100644 --- a/engines/gnap/gnap.h +++ b/engines/gnap/gnap.h @@ -43,6 +43,7 @@ #include "gnap/resource.h" #include "gnap/scenes/scenecore.h" #include "gnap/character.h" +#include "gnap/music.h" struct ADGameDescription; @@ -53,6 +54,7 @@ class SequenceResource; class SpriteResource; class GameSys; class SoundMan; +class MusicPlayer; #define GNAP_SAVEGAME_VERSION 1 @@ -78,7 +80,8 @@ struct Hotspot { const int kMaxTimers = 10; enum GnapDebugChannels { - kDebugBasic = 1 << 0 + kDebugBasic = 1 << 0, + kDebugMusic = 1 << 1 }; enum { @@ -234,6 +237,7 @@ public: Scene *_scene; PlayerGnap *_gnap; PlayerPlat *_plat; + MusicPlayer *_music; int _lastUpdateClock; @@ -453,6 +457,9 @@ public: int toyUfoGetSequenceId(); bool toyUfoCheckTimer(); void toyUfoFlyTo(int destX, int destY, int minX, int maxX, int minY, int maxY, int animationIndex); + + void playMidi(const char *name); + void stopMidi(); }; } // End of namespace Gnap -- cgit v1.2.3