aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-08 21:47:28 +0000
committerJohannes Schickel2010-01-08 21:47:28 +0000
commitf263393ef00517143876d26da2d35541307cb51c (patch)
treeff9bd5fa3d51b785764661467842255944076da0 /engines
parent5cfd241af9f4cad018cb3f8d9555e5a5e468c3bd (diff)
downloadscummvm-rg350-f263393ef00517143876d26da2d35541307cb51c.tar.gz
scummvm-rg350-f263393ef00517143876d26da2d35541307cb51c.tar.bz2
scummvm-rg350-f263393ef00517143876d26da2d35541307cb51c.zip
Fix sound effects in Sword1 PSX, regression from r47132.
svn-id: r47176
Diffstat (limited to 'engines')
-rw-r--r--engines/sword1/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp
index 30e12cda93..31439d587d 100644
--- a/engines/sword1/sound.cpp
+++ b/engines/sword1/sound.cpp
@@ -258,7 +258,7 @@ void Sound::playSample(QueueElement *elem) {
if (SwordEngine::isPsx()) { ;
uint32 size = READ_LE_UINT32(sampleData);
- Audio::AudioStream *audStream = new Audio::VagStream(new Common::MemoryReadStream(sampleData + 4, size-4), _fxList[elem->id].type == FX_LOOP);
+ Audio::AudioStream *audStream = Audio::makeLoopingAudioStream(new Audio::VagStream(new Common::MemoryReadStream(sampleData + 4, size-4)), (_fxList[elem->id].type == FX_LOOP) ? 0 : 1);
_mixer->playInputStream(Audio::Mixer::kSFXSoundType, &elem->handle, audStream, elem->id, volume, pan, false, false, false);
} else {
uint32 size = READ_LE_UINT32(sampleData + 0x28);