aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/menu
diff options
context:
space:
mode:
authorLittleboy2011-06-24 10:56:49 -0400
committerLittleboy2011-06-24 10:56:49 -0400
commit5d020fffad44c78414b91de7c26653b11b78b60f (patch)
tree50899050b92b6e30f8bda0204d923c89aa5c7416 /engines/lastexpress/menu
parent08375150ca0b4719ddda7932d5f5061fff225a28 (diff)
downloadscummvm-rg350-5d020fffad44c78414b91de7c26653b11b78b60f.tar.gz
scummvm-rg350-5d020fffad44c78414b91de7c26653b11b78b60f.tar.bz2
scummvm-rg350-5d020fffad44c78414b91de7c26653b11b78b60f.zip
LASTEXPRESS: Refactor Sound class
- Move entry-related functions to separate class - Move enumeration to shared header and rename FlagType to SoundFlag
Diffstat (limited to 'engines/lastexpress/menu')
-rw-r--r--engines/lastexpress/menu/menu.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/lastexpress/menu/menu.cpp b/engines/lastexpress/menu/menu.cpp
index e55a6d5960..74a2c77a01 100644
--- a/engines/lastexpress/menu/menu.cpp
+++ b/engines/lastexpress/menu/menu.cpp
@@ -314,7 +314,7 @@ void Menu::show(bool doSavegame, SavegameType type, uint32 value) {
getFlags()->mouseRightClick = false;
// Play intro music
- getSound()->playSoundWithSubtitles("MUS001.SND", SoundManager::kFlagMusic, kEntityPlayer);
+ getSound()->playSoundWithSubtitles("MUS001.SND", kFlagMusic, kEntityPlayer);
// Show The Smoking Car logo
if (animation.load(getArchive("1931.nis")))
@@ -325,7 +325,7 @@ void Menu::show(bool doSavegame, SavegameType type, uint32 value) {
} else {
// Only show the quick intro
if (!_hasShownStartScreen) {
- getSound()->playSoundWithSubtitles("MUS018.SND", SoundManager::kFlagMusic, kEntityPlayer);
+ getSound()->playSoundWithSubtitles("MUS018.SND", kFlagMusic, kEntityPlayer);
getScenes()->loadScene(kSceneStartScreen);
// Original game waits 60 frames and loops Sound::unknownFunction1 unless the right button is pressed
@@ -349,7 +349,7 @@ void Menu::show(bool doSavegame, SavegameType type, uint32 value) {
// Setup sound
getSound()->unknownFunction4();
- getSound()->resetQueue(SoundManager::kSoundType11, SoundManager::kSoundType13);
+ getSound()->resetQueue(kSoundType11, kSoundType13);
if (getSound()->isBuffered("TIMER"))
getSound()->removeFromQueue("TIMER");
@@ -484,7 +484,7 @@ bool Menu::handleEvent(StartMenuAction action, Common::EventType type) {
setLogicEventHandlers();
if (_index) {
- getSound()->processEntry(SoundManager::kSoundType11);
+ getSound()->processEntry(kSoundType11);
} else {
if (!getFlags()->mouseRightClick) {
getScenes()->loadScene((SceneIndex)(5 * _gameId + 3));
@@ -496,7 +496,7 @@ bool Menu::handleEvent(StartMenuAction action, Common::EventType type) {
getScenes()->loadScene((SceneIndex)(5 * _gameId + 5));
if (!getFlags()->mouseRightClick) {
- getSound()->processEntry(SoundManager::kSoundType11);
+ getSound()->processEntry(kSoundType11);
// Show intro
Animation animation;
@@ -512,7 +512,7 @@ bool Menu::handleEvent(StartMenuAction action, Common::EventType type) {
if (!getEvent(kEventIntro)) {
getEvent(kEventIntro) = 1;
- getSound()->processEntry(SoundManager::kSoundType11);
+ getSound()->processEntry(kSoundType11);
}
}
@@ -1120,7 +1120,7 @@ void Menu::updateTime(uint32 time) {
if (getSound()->isBuffered(kEntityChapters))
getSound()->removeFromQueue(kEntityChapters);
- getSound()->playSoundWithSubtitles((_currentTime >= _time) ? "LIB042" : "LIB041", SoundManager::kFlagMenuClock, kEntityChapters);
+ getSound()->playSoundWithSubtitles((_currentTime >= _time) ? "LIB042" : "LIB041", kFlagMenuClock, kEntityChapters);
adjustIndex(_currentTime, _time, false);
}
}