diff options
author | Paul Gilbert | 2016-09-03 10:34:38 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-03 10:34:38 -0400 |
commit | c224d35a432fff7e1d0a6bf5368f7f2e81a45e27 (patch) | |
tree | c568bc54a2eaf5c0cbc69f76e1e771659690fd7c /engines/titanic/sound/auto_sound_player_adsr.cpp | |
parent | 38cf75e885983b88d03272f35e39f5d874eae575 (diff) | |
download | scummvm-rg350-c224d35a432fff7e1d0a6bf5368f7f2e81a45e27.tar.gz scummvm-rg350-c224d35a432fff7e1d0a6bf5368f7f2e81a45e27.tar.bz2 scummvm-rg350-c224d35a432fff7e1d0a6bf5368f7f2e81a45e27.zip |
TITANIC: Identified sound balance usage in the engine
Diffstat (limited to 'engines/titanic/sound/auto_sound_player_adsr.cpp')
-rw-r--r-- | engines/titanic/sound/auto_sound_player_adsr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/sound/auto_sound_player_adsr.cpp b/engines/titanic/sound/auto_sound_player_adsr.cpp index f9f045759b..d900ca0792 100644 --- a/engines/titanic/sound/auto_sound_player_adsr.cpp +++ b/engines/titanic/sound/auto_sound_player_adsr.cpp @@ -48,12 +48,12 @@ void CAutoSoundPlayerADSR::load(SimpleFile *file) { bool CAutoSoundPlayerADSR::TurnOn(CTurnOn *msg) { if (_soundHandle == -1) { if (!_soundName1.empty()) { - _soundHandle = playSound(_soundName1, _volume, _fieldD0); + _soundHandle = playSound(_soundName1, _volume, _balance); if (!_soundName2.empty()) - _soundHandle = queueSound(_soundName2, _soundHandle, _volume, _fieldD0); + _soundHandle = queueSound(_soundName2, _soundHandle, _volume, _balance); - _soundHandle = queueSound(_filename, _soundHandle, _volume, _fieldD0); + _soundHandle = queueSound(_filename, _soundHandle, _volume, _balance); _active = true; } } @@ -64,7 +64,7 @@ bool CAutoSoundPlayerADSR::TurnOn(CTurnOn *msg) { bool CAutoSoundPlayerADSR::TurnOff(CTurnOff *msg) { if (_soundHandle != -1) { if (!_soundName3.empty()) - queueSound(_soundName3, _soundHandle, _volume, _fieldD0); + queueSound(_soundName3, _soundHandle, _volume, _balance); if (isSoundActive(_soundHandle)) stopSound(_soundHandle); |