aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2015-02-24 00:57:18 +0200
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commit6006a0083627d9b43f110fe496a96d159f50b586 (patch)
tree9a0d0097b666b7a3cb8469b258d50dd645f6ebd0 /engines
parent1c77b2daf88c465c8f8cffddff65f8a7bca1af89 (diff)
downloadscummvm-rg350-6006a0083627d9b43f110fe496a96d159f50b586.tar.gz
scummvm-rg350-6006a0083627d9b43f110fe496a96d159f50b586.tar.bz2
scummvm-rg350-6006a0083627d9b43f110fe496a96d159f50b586.zip
LAB: The audio data in the DOS version is unsigned
Diffstat (limited to 'engines')
-rw-r--r--engines/lab/audioi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/lab/audioi.cpp b/engines/lab/audioi.cpp
index 735f9b67f1..c841e53680 100644
--- a/engines/lab/audioi.cpp
+++ b/engines/lab/audioi.cpp
@@ -202,6 +202,8 @@ void playSoundEffect(uint16 SampleSpeed, uint16 Volume, uint32 Length, bool flus
byte soundFlags = Audio::FLAG_LITTLE_ENDIAN;
if (g_lab->getPlatform() == Common::kPlatformWindows)
soundFlags |= Audio::FLAG_16BITS;
+ else
+ soundFlags |= Audio::FLAG_UNSIGNED;
Audio::SeekableAudioStream *audStream = Audio::makeRawStream((const byte *)Data, Length, SampleSpeed, soundFlags, DisposeAfterUse::NO);
g_lab->_mixer->playStream(Audio::Mixer::kSFXSoundType, &g_musicHandle, audStream);