aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/cruise/function.cpp2
-rw-r--r--engines/cruise/sound.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 78b7d189ba..2c87fa2599 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -1635,7 +1635,7 @@ int16 Op_GetNodeY(void) {
}
int16 Op_SetVolume(void) {
- int oldVolume = _vm->music().volume() >> 2;
+ int oldVolume = _vm->music().getVolume() >> 2;
int newVolume = popVar();
// TODO: The game seems to expect the volume will only range from 0 - 63, so for now
diff --git a/engines/cruise/sound.h b/engines/cruise/sound.h
index d2ffa080a8..2a2d6864ce 100644
--- a/engines/cruise/sound.h
+++ b/engines/cruise/sound.h
@@ -55,7 +55,7 @@ public:
~MusicPlayer();
void setVolume(int volume);
- int getVolume() { return _masterVolume; }
+ int getVolume() const { return _masterVolume; }
void stop();
void pause();
@@ -73,7 +73,6 @@ public:
bool songPlayed() const { return _songPlayed; }
bool isPlaying() const { return _isPlaying; }
bool looping() const { return _looping; }
- byte volume() const { return _masterVolume; }
byte *songData() { return _songPointer; }
void setPlaying(bool playing) { _isPlaying = playing; }
void setLoop(bool loop) { _looping = loop; }