From 35d4ce0ed75b2575067007a85d5c211d292ebada Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 Mar 2013 20:16:39 +0300 Subject: Rename SoundManager sigleton from sound to soundManager. --- src/client.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 05efccd92..f79baf7df 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -150,7 +150,7 @@ KeyboardConfig keyboard; UserPalette *userPalette = nullptr; Graphics *mainGraphics = nullptr; -SoundManager sound; +SoundManager soundManager; int openGLMode = 0; static uint32_t nextTick(uint32_t interval, void *param A_UNUSED); @@ -594,10 +594,10 @@ void Client::gameInit() try { if (config.getBoolValue("sound")) - sound.init(); + soundManager.init(); - sound.setSfxVolume(config.getIntValue("sfxVolume")); - sound.setMusicVolume(config.getIntValue("musicVolume")); + soundManager.setSfxVolume(config.getIntValue("sfxVolume")); + soundManager.setMusicVolume(config.getIntValue("musicVolume")); } catch (const char *const err) { @@ -618,7 +618,8 @@ void Client::gameInit() userPalette = new UserPalette; setupWindow = new Setup; - sound.playMusic(branding.getValue("loginMusic", "Magick - Real.ogg")); + soundManager.playMusic(branding.getValue( + "loginMusic", "Magick - Real.ogg")); // Initialize default server mCurrentServer.hostname = mOptions.serverName; @@ -794,7 +795,7 @@ void Client::gameClear() BeingInfo::clear(); // Shutdown sound - sound.close(); + soundManager.close(); if (logger) logger->log1("Quitting6"); @@ -823,7 +824,7 @@ void Client::gameClear() if (logger) logger->log1("Quitting10"); - sound.shutdown(); + soundManager.shutdown(); touchManager.shutdown(); #ifdef DEBUG_CONFIG @@ -1009,7 +1010,7 @@ int Client::gameExec() ++lastTickTime; k ++; } - sound.logic(); + soundManager.logic(); logic_count += k; if (gui) @@ -1465,7 +1466,7 @@ int Client::gameExec() // Fade out logon-music here too to give the desired effect // of "flowing" into the game. - sound.fadeOutMusic(1000); + soundManager.fadeOutMusic(1000); // Allow any alpha opacity Theme::instance()->setMinimumOpacity(-1.0f); -- cgit v1.2.3-60-g2f50