aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/sound.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-11-20 03:14:03 +0000
committerPaul Gilbert2010-11-20 03:14:03 +0000
commita2367d26f9d7f8523c313a7b82d0b719de1e6e15 (patch)
treee63bfc6e1a8bd82f00ed24fdf167c6259676cc38 /engines/tinsel/sound.cpp
parentb2ba35124c707ca33e0372690a0eb25e316bce8a (diff)
downloadscummvm-rg350-a2367d26f9d7f8523c313a7b82d0b719de1e6e15.tar.gz
scummvm-rg350-a2367d26f9d7f8523c313a7b82d0b719de1e6e15.tar.bz2
scummvm-rg350-a2367d26f9d7f8523c313a7b82d0b719de1e6e15.zip
TINSEL: Preliminary functionality for reading BE data files
svn-id: r54392
Diffstat (limited to 'engines/tinsel/sound.cpp')
-rw-r--r--engines/tinsel/sound.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tinsel/sound.cpp b/engines/tinsel/sound.cpp
index 0624409f92..7fab3624a4 100644
--- a/engines/tinsel/sound.cpp
+++ b/engines/tinsel/sound.cpp
@@ -105,7 +105,7 @@ bool SoundManager::playSample(int id, Audio::Mixer::SoundType type, Audio::Sound
error(FILE_IS_CORRUPT, _vm->getSampleFile(sampleLanguage));
// read the length of the sample
- uint32 sampleLen = _sampleStream.readUint32LE();
+ uint32 sampleLen = _sampleStream.readUint32();
if (_sampleStream.eos() || _sampleStream.err())
error(FILE_IS_CORRUPT, _vm->getSampleFile(sampleLanguage));
@@ -264,7 +264,7 @@ bool SoundManager::playSample(int id, int sub, bool bLooped, int x, int y, int p
error(FILE_IS_CORRUPT, _vm->getSampleFile(sampleLanguage));
// read the length of the sample
- uint32 sampleLen = _sampleStream.readUint32LE();
+ uint32 sampleLen = _sampleStream.readUint32();
if (_sampleStream.eos() || _sampleStream.err())
error(FILE_IS_CORRUPT, _vm->getSampleFile(sampleLanguage));
@@ -277,12 +277,12 @@ bool SoundManager::playSample(int id, int sub, bool bLooped, int x, int y, int p
// Skipping
for (int32 i = 0; i < sub; i++) {
- sampleLen = _sampleStream.readUint32LE();
+ sampleLen = _sampleStream.readUint32();
_sampleStream.skip(sampleLen);
if (_sampleStream.eos() || _sampleStream.err())
error(FILE_IS_CORRUPT, _vm->getSampleFile(sampleLanguage));
}
- sampleLen = _sampleStream.readUint32LE();
+ sampleLen = _sampleStream.readUint32();
if (_sampleStream.eos() || _sampleStream.err())
error(FILE_IS_CORRUPT, _vm->getSampleFile(sampleLanguage));
}