From 999490e88bc699b671b94b88c9a4327d963db378 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Tue, 31 Dec 2013 16:58:21 +0100 Subject: Code for changing music in pause mode As requested by @Emxx52. Only code for now, we don't have the music yet. Temporairly in developements builds music will change to Prototype (in CBot editor) and Constructive Destruction (in SatCom) --- src/sound/sound.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/sound/sound.cpp') diff --git a/src/sound/sound.cpp b/src/sound/sound.cpp index 1605e2b..3802611 100644 --- a/src/sound/sound.cpp +++ b/src/sound/sound.cpp @@ -59,6 +59,12 @@ void CSoundInterface::AddMusicFiles(const std::string &path) CacheMusic("Intro2.ogg"); CacheMusic("music010.ogg"); CacheMusic("music011.ogg"); + // TODO: Add pause music here + // CacheMusic(""); + #if DEV_BUILD + CacheMusic("Prototype.ogg"); + CacheMusic("Constructive.ogg"); + #endif } bool CSoundInterface::Cache(Sound bSound, const std::string &bFile) @@ -175,3 +181,11 @@ bool CSoundInterface::IsPlayingMusic() return true; } +bool CSoundInterface::PlayPauseMusic(const std::string &filename) +{ + return true; +} + +void CSoundInterface::StopPauseMusic() +{ +} -- cgit v1.2.3-1-g7c22