From 27b37ed97e4a47200f9940c800cd913e006dba10 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 23 Jan 2010 15:01:17 +0000 Subject: Amiga SCI1 games had signed sound data. Fixes PQ3 Amiga svn-id: r47477 --- engines/sci/sound/music.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/sci/sound') diff --git a/engines/sci/sound/music.cpp b/engines/sci/sound/music.cpp index a917e36ab3..13be36b488 100644 --- a/engines/sci/sound/music.cpp +++ b/engines/sci/sound/music.cpp @@ -180,7 +180,11 @@ void SciMusic::soundInitSnd(MusicEntry *pSnd) { if (track->digitalChannelNr != -1) { byte *channelData = track->channels[track->digitalChannelNr].data; delete pSnd->pStreamAud; - pSnd->pStreamAud = Audio::makeRawMemoryStream(channelData, track->digitalSampleSize, DisposeAfterUse::NO, track->digitalSampleRate, Audio::FLAG_UNSIGNED); + byte flags = Audio::FLAG_UNSIGNED; + // Amiga SCI1 games had signed sound data + if (_soundVersion >= SCI_VERSION_1_EARLY && ((SciEngine *)g_engine)->getPlatform() == Common::kPlatformAmiga) + flags = 0; + pSnd->pStreamAud = Audio::makeRawMemoryStream(channelData, track->digitalSampleSize, DisposeAfterUse::NO, track->digitalSampleRate, flags); delete pSnd->pLoopStream; pSnd->pLoopStream = 0; pSnd->soundType = Audio::Mixer::kSFXSoundType; -- cgit v1.2.3