aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/mult_v2.cpp
diff options
context:
space:
mode:
authorSven Hesse2007-01-31 13:17:50 +0000
committerSven Hesse2007-01-31 13:17:50 +0000
commit7101c0ef260fb1f095b8e04a5dc1ceb9e99cf759 (patch)
treee640d6e565b51bb7b251fb0b3bda68ddc05d468d /engines/gob/mult_v2.cpp
parent836a4ea99e36cdfda21d77f3bd8c41d9db824d49 (diff)
downloadscummvm-rg350-7101c0ef260fb1f095b8e04a5dc1ceb9e99cf759.tar.gz
scummvm-rg350-7101c0ef260fb1f095b8e04a5dc1ceb9e99cf759.tar.bz2
scummvm-rg350-7101c0ef260fb1f095b8e04a5dc1ceb9e99cf759.zip
- Correctly setting of Snd::_playingSound
- Implemented sound fading in/out - o2_stub0x81 -> o2_scroll svn-id: r25307
Diffstat (limited to 'engines/gob/mult_v2.cpp')
-rw-r--r--engines/gob/mult_v2.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/gob/mult_v2.cpp b/engines/gob/mult_v2.cpp
index c082859204..10720b23aa 100644
--- a/engines/gob/mult_v2.cpp
+++ b/engines/gob/mult_v2.cpp
@@ -203,7 +203,7 @@ void Mult_v2::loadMult(int16 resId) {
_multData2->sndKeys[i].frame = data.readSint16LE();
_multData2->sndKeys[i].cmd = data.readSint16LE();
_multData2->sndKeys[i].freq = data.readSint16LE();
- _multData2->sndKeys[i].channel = data.readSint16LE();
+ _multData2->sndKeys[i].fadeLength = data.readSint16LE();
_multData2->sndKeys[i].repCount = data.readSint16LE();
_multData2->sndKeys[i].soundIndex = -1;
_multData2->sndKeys[i].resId = -1;
@@ -564,8 +564,8 @@ void Mult_v2::playMult(int16 startFrame, int16 endFrame, char checkEscape,
_animDataAllocated = 0;
}
- if (_vm->_snd->_playingSound != 0)
- _vm->_snd->stopSound(10);
+/* if (_vm->_snd->_playingSound != 0)
+ _vm->_snd->stopSound(10);*/
WRITE_VAR(57, (uint32)-1);
} else
@@ -862,11 +862,11 @@ char Mult_v2::doSoundAnim(char stop, int16 frame) {
if (_vm->_game->_soundSamples[sndKey->soundIndex] == 0)
continue;
playSound(_vm->_game->_soundSamples[sndKey->soundIndex], sndKey->repCount,
- sndKey->freq, sndKey->channel);
+ sndKey->freq, sndKey->fadeLength);
}
} else {
if (_vm->_snd->_playingSound)
- _vm->_snd->stopSound(sndKey->channel);
+ _vm->_snd->stopSound(sndKey->fadeLength);
}
}
return stop;
@@ -1299,8 +1299,8 @@ void Mult_v2::animate(void) {
}
void Mult_v2::playSound(Snd::SoundDesc * soundDesc, int16 repCount, int16 freq,
- int16 channel) {
- _vm->_snd->playSample(soundDesc, repCount, freq);
+ int16 fadeLength) {
+ _vm->_snd->playSample(soundDesc, repCount, freq, fadeLength);
}
void Mult_v2::freeMult(void) {