aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_sound.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-04 20:26:26 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit1b062d1e39988388468bb13af97276d5674bbcbe (patch)
tree7e329f01236b3c46cda387b5f8b14bccd301d4ca /engines/mohawk/riven_sound.cpp
parent2fbe284a311f2eef62126115ddd6d2bb483b3c4b (diff)
downloadscummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.tar.gz
scummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.tar.bz2
scummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.zip
MOHAWK: Move the sound lists to RivenCard
Diffstat (limited to 'engines/mohawk/riven_sound.cpp')
-rw-r--r--engines/mohawk/riven_sound.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/engines/mohawk/riven_sound.cpp b/engines/mohawk/riven_sound.cpp
index 10a23a0719..569bbb478a 100644
--- a/engines/mohawk/riven_sound.cpp
+++ b/engines/mohawk/riven_sound.cpp
@@ -68,64 +68,6 @@ void RivenSoundManager::playSound(uint16 id, uint16 volume, bool playOnDraw) {
}
}
-void RivenSoundManager::playSLST(uint16 index, uint16 card) {
- Common::SeekableReadStream *slstStream = _vm->getResource(ID_SLST, card);
-
- uint16 recordCount = slstStream->readUint16BE();
-
- for (uint16 i = 0; i < recordCount; i++) {
- SLSTRecord slstRecord;
- slstRecord.index = slstStream->readUint16BE();
-
- uint16 soundCount = slstStream->readUint16BE();
- slstRecord.soundIds.resize(soundCount);
-
- for (uint16 j = 0; j < soundCount; j++)
- slstRecord.soundIds[j] = slstStream->readUint16BE();
-
- slstRecord.fadeFlags = slstStream->readUint16BE();
- slstRecord.loop = slstStream->readUint16BE();
- slstRecord.globalVolume = slstStream->readUint16BE();
- slstRecord.u0 = slstStream->readUint16BE(); // Unknown
-
- if (slstRecord.u0 > 1)
- warning("slstRecord.u0: %d non-boolean", slstRecord.u0);
-
- slstRecord.suspend = slstStream->readUint16BE();
-
- if (slstRecord.suspend != 0)
- warning("slstRecord.u1: %d non-zero", slstRecord.suspend);
-
- slstRecord.volumes.resize(soundCount);
- slstRecord.balances.resize(soundCount);
- slstRecord.u2.resize(soundCount);
-
- for (uint16 j = 0; j < soundCount; j++)
- slstRecord.volumes[j] = slstStream->readUint16BE();
-
- for (uint16 j = 0; j < soundCount; j++)
- slstRecord.balances[j] = slstStream->readSint16BE(); // negative = left, 0 = center, positive = right
-
- for (uint16 j = 0; j < soundCount; j++) {
- slstRecord.u2[j] = slstStream->readUint16BE(); // Unknown
-
- if (slstRecord.u2[j] != 255 && slstRecord.u2[j] != 256)
- warning("slstRecord.u2[%d]: %d not 255 or 256", j, slstRecord.u2[j]);
- }
-
- if (slstRecord.index == index) {
- playSLST(slstRecord);
- delete slstStream;
- return;
- }
- }
-
- delete slstStream;
-
- // If we have no matching entries, we do nothing and just let
- // the previous ambient sounds continue.
-}
-
void RivenSoundManager::playSLST(const SLSTRecord &slstRecord) {
if (slstRecord.soundIds.empty()) {
return;