diff options
author | Paul Gilbert | 2007-09-16 04:06:49 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-09-16 04:06:49 +0000 |
commit | b2e97060adf93760f7e4bce97e691e34fc258922 (patch) | |
tree | c646b990c339d55578600fcf33b608802d185366 /engines/lure/lure.cpp | |
parent | 041bb546c652d301bc68630f309b623d89471bab (diff) | |
download | scummvm-rg350-b2e97060adf93760f7e4bce97e691e34fc258922.tar.gz scummvm-rg350-b2e97060adf93760f7e4bce97e691e34fc258922.tar.bz2 scummvm-rg350-b2e97060adf93760f7e4bce97e691e34fc258922.zip |
Initial sound implementation
svn-id: r28917
Diffstat (limited to 'engines/lure/lure.cpp')
-rw-r--r-- | engines/lure/lure.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp index 7359ce9fb8..ada8f5081b 100644 --- a/engines/lure/lure.cpp +++ b/engines/lure/lure.cpp @@ -34,6 +34,7 @@ #include "lure/lure.h" #include "lure/intro.h" #include "lure/game.h" +#include "lure/sound.h" namespace Lure { @@ -45,17 +46,16 @@ LureEngine::LureEngine(OSystem *system): Engine(system) { Common::addSpecialDebugLevel(kLureDebugAnimations, "animations", "Animations debugging"); Common::addSpecialDebugLevel(kLureDebugHotspots, "hotspots", "Hotspots debugging"); Common::addSpecialDebugLevel(kLureDebugFights, "fights", "Fights debugging"); + Common::addSpecialDebugLevel(kLureDebugSounds, "sounds", "Sounds debugging"); // Setup mixer -/* + if (!_mixer->isReady()) { warning("Sound initialization failed."); } _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume")); _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume")); - _mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, ConfMan.getInt("speech_volume")); -*/ _features = 0; _game = 0; @@ -106,7 +106,9 @@ LureEngine &LureEngine::getReference() { int LureEngine::go() { if (ConfMan.getInt("boot_param") == 0) { // Show the introduction + Sound.loadSection(INTRO_SOUND_RESOURCE_ID); Introduction *intro = new Introduction(*_screen, *_system); + intro->show(); delete intro; } @@ -114,6 +116,7 @@ int LureEngine::go() { // Play the game if (!_events->quitFlag) { // Play the game + Sound.loadSection(MAIN_SOUND_RESOURCE_ID); Game *gameInstance = new Game(); gameInstance->execute(); delete gameInstance; |