aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
Diffstat (limited to 'sword1')
-rw-r--r--sword1/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sword1/sound.cpp b/sword1/sound.cpp
index ee6aca37b2..fdcde884f8 100644
--- a/sword1/sound.cpp
+++ b/sword1/sound.cpp
@@ -166,6 +166,8 @@ void Sound::playSample(QueueElement *elem) {
flags = Audio::Mixer::FLAG_UNSIGNED;
if (READ_LE_UINT16(sampleData + 0x16) == 2)
flags |= Audio::Mixer::FLAG_STEREO;
+ if (_fxList[elem->id].type == FX_LOOP)
+ flags |= Audio::Mixer::FLAG_LOOP;
_mixer->playRaw(&elem->handle, sampleData + 0x2C, size, 11025, flags, elem->id, volume, pan);
}
} else