[Scummvm-git-logs] scummvm master -> 82c8d93f3a51f9e0f1625d3bdd2d334fe5b79ae8

dreammaster dreammaster at scummvm.org
Tue Mar 6 03:38:09 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
82c8d93f3a XEEN: Sound field renaming for better clarity


Commit: 82c8d93f3a51f9e0f1625d3bdd2d334fe5b79ae8
    https://github.com/scummvm/scummvm/commit/82c8d93f3a51f9e0f1625d3bdd2d334fe5b79ae8
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-03-05T21:37:08-05:00

Commit Message:
XEEN: Sound field renaming for better clarity

Changed paths:
    engines/xeen/cutscenes.cpp
    engines/xeen/dialogs/dialogs_control_panel.cpp
    engines/xeen/sound.cpp
    engines/xeen/sound.h
    engines/xeen/worldofxeen/clouds_cutscenes.cpp


diff --git a/engines/xeen/cutscenes.cpp b/engines/xeen/cutscenes.cpp
index 1be9cc3..e7a604f 100644
--- a/engines/xeen/cutscenes.cpp
+++ b/engines/xeen/cutscenes.cpp
@@ -38,7 +38,7 @@ void Cutscenes::showSubtitles(uint windowIndex) {
 	Sound &sound = *_vm->_sound;
 	Windows &windows = *_vm->_windows;
 
-	if (sound._soundOn || _vm->shouldExit()) {
+	if (sound._fxOn || _vm->shouldExit()) {
 		// Sound is on, so subtitles aren't needed
 		resetSubtitles(0, 0);
 	} else {
diff --git a/engines/xeen/dialogs/dialogs_control_panel.cpp b/engines/xeen/dialogs/dialogs_control_panel.cpp
index 9c933b3..177c778 100644
--- a/engines/xeen/dialogs/dialogs_control_panel.cpp
+++ b/engines/xeen/dialogs/dialogs_control_panel.cpp
@@ -132,7 +132,7 @@ int ControlPanel::execute() {
 			break;
 
 		case Common::KEYCODE_e:
-			sound.setEffectsOn(!sound._soundOn);
+			sound.setFxOn(!sound._fxOn);
 			break;
 
 		case Common::KEYCODE_m:
@@ -195,7 +195,7 @@ void ControlPanel::loadButtons() {
 
 Common::String ControlPanel::getButtonText() {
 	Sound &sound = *g_vm->_sound;
-	_btnSoundText = sound._soundOn ? Res.ON : Res.OFF;
+	_btnSoundText = sound._fxOn ? Res.ON : Res.OFF;
 	_btnMusicText = sound._musicOn ? Res.ON : Res.OFF;
 
 	return Common::String::format(Res.CONTROL_PANEL_BUTTONS,
diff --git a/engines/xeen/sound.cpp b/engines/xeen/sound.cpp
index 95aabbe..a82901e 100644
--- a/engines/xeen/sound.cpp
+++ b/engines/xeen/sound.cpp
@@ -28,7 +28,7 @@
 
 namespace Xeen {
 
-Sound::Sound(Audio::Mixer *mixer) : _mixer(mixer), _soundOn(true), _musicOn(true),
+Sound::Sound(Audio::Mixer *mixer) : _mixer(mixer), _fxOn(true), _musicOn(true),
 		_songData(nullptr), _effectsData(nullptr), _musicSide(0) {
 	_SoundDriver = new AdlibSoundDriver();
 }
@@ -43,7 +43,7 @@ Sound::~Sound() {
 
 void Sound::playSound(Common::SeekableReadStream &s, int unused) {
 	stopSound();
-	if (!_soundOn)
+	if (!_fxOn)
 		return;
 
 	s.seek(0);
@@ -83,7 +83,7 @@ void Sound::stopAllAudio() {
 	stopSound();
 }
 
-void Sound::setEffectsOn(bool isOn) {
+void Sound::setFxOn(bool isOn) {
 	ConfMan.setBool("sfx_mute", !isOn);
 	if (isOn)
 		ConfMan.setBool("mute", false);
@@ -92,8 +92,8 @@ void Sound::setEffectsOn(bool isOn) {
 }
 
 void Sound::updateSoundSettings() {
-	_soundOn = !ConfMan.getBool("sfx_mute");
-	if (!_soundOn)
+	_fxOn = !ConfMan.getBool("sfx_mute");
+	if (!_fxOn)
 		stopFX();
 
 	_musicOn = !ConfMan.getBool("music_mute");
diff --git a/engines/xeen/sound.h b/engines/xeen/sound.h
index ab71af9..e062917 100644
--- a/engines/xeen/sound.h
+++ b/engines/xeen/sound.h
@@ -50,7 +50,7 @@ private:
 	 */
 	void update();
 public:
-	bool _soundOn;
+	bool _fxOn;
 	bool _musicOn;
 	Common::String _currentMusic, _priorMusic;
 	int _musicSide;
@@ -118,7 +118,7 @@ public:
 	/**
 	* Sets whether sound effects is on
 	*/
-	void setEffectsOn(bool isOn);
+	void setFxOn(bool isOn);
 
 	/**
 	 * Called to reload sound settings
diff --git a/engines/xeen/worldofxeen/clouds_cutscenes.cpp b/engines/xeen/worldofxeen/clouds_cutscenes.cpp
index 7a85772..436abb3 100644
--- a/engines/xeen/worldofxeen/clouds_cutscenes.cpp
+++ b/engines/xeen/worldofxeen/clouds_cutscenes.cpp
@@ -339,11 +339,11 @@ bool CloudsCutscenes::showCloudsIntroInner() {
 			}
 
 			++lookup;
-			if (!sound._soundOn && lookup > 30)
+			if (!sound._fxOn && lookup > 30)
 				lookup = 0;
 		}
 
-		if (!sound._soundOn)
+		if (!sound._fxOn)
 			lineCtr = 20;
 
 		if (lineCtr == 5)





More information about the Scummvm-git-logs mailing list