diff options
Diffstat (limited to 'engines/titanic/sound')
-rw-r--r-- | engines/titanic/sound/sound_manager.cpp | 8 | ||||
-rw-r--r-- | engines/titanic/sound/sound_manager.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/titanic/sound/sound_manager.cpp b/engines/titanic/sound/sound_manager.cpp index 4846329784..ae806feb52 100644 --- a/engines/titanic/sound/sound_manager.cpp +++ b/engines/titanic/sound/sound_manager.cpp @@ -33,14 +33,14 @@ CSoundManager::CSoundManager() : _musicPercent(75.0), _speechPercent(75.0), _masterPercent(75.0), _parrotPercent(75.0), _handleCtr(1) { } -double CSoundManager::getModeVolume(int mode) { +uint CSoundManager::getModeVolume(int mode) { switch (mode) { case -1: - return _masterPercent; + return (uint)_masterPercent; case -2: - return _masterPercent * 30 / 100; + return (uint)(_masterPercent * 30 / 100); case -3: - return _masterPercent * 15 / 100; + return (uint)(_masterPercent * 15 / 100); default: return 0; } diff --git a/engines/titanic/sound/sound_manager.h b/engines/titanic/sound/sound_manager.h index 3dfba92e9c..d1afdb4ad4 100644 --- a/engines/titanic/sound/sound_manager.h +++ b/engines/titanic/sound/sound_manager.h @@ -214,7 +214,7 @@ public: /** * Gets the volume for a given mode? value */ - double getModeVolume(int mode); + uint getModeVolume(int mode); }; class QSoundManagerSound : public ListItem { |