From 18d3e588258bc104c70621b76eb07fa5164fc46c Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Wed, 22 Dec 2010 22:56:42 +0000 Subject: HUGO: Suppress some obsolete volume related variables svn-id: r55019 --- engines/hugo/game.h | 11 ++++------- engines/hugo/hugo.cpp | 6 +----- engines/hugo/sound.cpp | 2 +- 3 files changed, 6 insertions(+), 13 deletions(-) (limited to 'engines') diff --git a/engines/hugo/game.h b/engines/hugo/game.h index 275f083d09..649ff63c23 100644 --- a/engines/hugo/game.h +++ b/engines/hugo/game.h @@ -777,9 +777,9 @@ struct object_t { /** * Following is structure of verbs and nouns for 'background' objects -* These are objects that appear in the various screens, but nothing -* interesting ever happens with them. Rather than just be dumb and say -* "don't understand" we produce an interesting msg to keep user sane. +* These are objects that appear in the various screens, but nothing +* interesting ever happens with them. Rather than just be dumb and say +* "don't understand" we produce an interesting msg to keep user sane. */ struct background_t { uint16 verbIndex; @@ -849,10 +849,7 @@ struct config_t { // User's config (saved) bool musicFl; // State of Music button/menu item bool soundFl; // State of Sound button/menu item bool turboFl; // State of Turbo button/menu item - bool backgroundMusicFl; // Continue music when task inactive - byte musicVolume; // Music volume percentage - byte soundVolume; // Sound volume percentage - bool playlist[MAX_TUNES]; // Tune playlist + bool playlist[MAX_TUNES]; // Tune playlist }; struct target_t { // Secondary target for action diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 02eca3ff68..1702c3752a 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -958,12 +958,8 @@ void HugoEngine::initConfig(inst_t action) { _config.musicFl = true; // Music state initially on _config.soundFl = true; // Sound state initially on _config.turboFl = false; // Turbo state initially off - _config.backgroundMusicFl = false; // No music when inactive - _config.musicVolume = 85; // Music volume % - _config.soundVolume = 100; // Sound volume % initPlaylist(_config.playlist); // Initialize default tune playlist - - _file->readBootFile(); // Read startup structure + _file->readBootFile(); // Read startup structure break; case RESET: // Find first tune and play it diff --git a/engines/hugo/sound.cpp b/engines/hugo/sound.cpp index 1894a636d8..cdb3ced347 100644 --- a/engines/hugo/sound.cpp +++ b/engines/hugo/sound.cpp @@ -240,7 +240,7 @@ SoundHandler::~SoundHandler() { * Set the FM music volume from config.mvolume (0..100%) */ void SoundHandler::setMusicVolume() { - _midiPlayer->setVolume(_config.musicVolume * 255 / 100); + _midiPlayer->syncVolume(); } /** -- cgit v1.2.3