diff options
author | Paul Gilbert | 2017-07-16 16:18:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-07-16 16:18:16 -0400 |
commit | 850dcdbdf8252b4f5dbc6812c0108d58f101534e (patch) | |
tree | 1f93fc02fe33d03def003a1b6a573d3a63f24f4f /engines/titanic/sound/auto_music_player_base.cpp | |
parent | d8eccdec323dfc1126b87624b73e7effcb2f50bb (diff) | |
download | scummvm-rg350-850dcdbdf8252b4f5dbc6812c0108d58f101534e.tar.gz scummvm-rg350-850dcdbdf8252b4f5dbc6812c0108d58f101534e.tar.bz2 scummvm-rg350-850dcdbdf8252b4f5dbc6812c0108d58f101534e.zip |
TITANIC: Add a VolumeMode enum
Diffstat (limited to 'engines/titanic/sound/auto_music_player_base.cpp')
-rw-r--r-- | engines/titanic/sound/auto_music_player_base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/sound/auto_music_player_base.cpp b/engines/titanic/sound/auto_music_player_base.cpp index b000d8f90d..31522d85b4 100644 --- a/engines/titanic/sound/auto_music_player_base.cpp +++ b/engines/titanic/sound/auto_music_player_base.cpp @@ -32,7 +32,7 @@ BEGIN_MESSAGE_MAP(CAutoMusicPlayerBase, CGameObject) END_MESSAGE_MAP() CAutoMusicPlayerBase::CAutoMusicPlayerBase() : CGameObject(), - _initialMute(true), _isRepeated(false), _volumeMode(-1), _transition(1) { + _initialMute(true), _isRepeated(false), _volumeMode(VOL_NORMAL), _transition(1) { } void CAutoMusicPlayerBase::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); @@ -50,7 +50,7 @@ void CAutoMusicPlayerBase::load(SimpleFile *file) { _filename = file->readString(); _initialMute = file->readNumber(); _isRepeated = file->readNumber(); - _volumeMode = file->readNumber(); + _volumeMode = (VolumeMode)file->readNumber(); _transition = file->readNumber(); CGameObject::load(file); |