From e149a88b990bfad8d65e4780f22435d63e2c1f01 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Thu, 3 Dec 2009 22:32:48 +0000 Subject: SCI: Don't call SciMusic for volume changes when using old code svn-id: r46247 --- engines/sci/sfx/soundcmd.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/engines/sci/sfx/soundcmd.cpp b/engines/sci/sfx/soundcmd.cpp index 352f61c307..3b95ba28e3 100644 --- a/engines/sci/sfx/soundcmd.cpp +++ b/engines/sci/sfx/soundcmd.cpp @@ -479,9 +479,11 @@ void SoundCommandParser::cmdMuteSound(reg_t obj, SongHandle handle, int value) { } void SoundCommandParser::cmdVolume(reg_t obj, SongHandle handle, int value) { - if (_argc > 1) - _music->soundSetMasterVolume(obj.toSint16()); - _acc = make_reg(0, _music->soundGetMasterVolume()); + #ifndef USE_OLD_MUSIC_FUNCTIONS + if (_argc > 1) + _music->soundSetMasterVolume(obj.toSint16()); + _acc = make_reg(0, _music->soundGetMasterVolume()); + #endif } void SoundCommandParser::cmdFadeHandle(reg_t obj, SongHandle handle, int value) { -- cgit v1.2.3