[Scummvm-cvs-logs] SF.net SVN: scummvm:[47477] scummvm/trunk/engines/sci/sound/music.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sat Jan 23 16:01:17 CET 2010
Revision: 47477
http://scummvm.svn.sourceforge.net/scummvm/?rev=47477&view=rev
Author: thebluegr
Date: 2010-01-23 15:01:17 +0000 (Sat, 23 Jan 2010)
Log Message:
-----------
Amiga SCI1 games had signed sound data. Fixes PQ3 Amiga
Modified Paths:
--------------
scummvm/trunk/engines/sci/sound/music.cpp
Modified: scummvm/trunk/engines/sci/sound/music.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/music.cpp 2010-01-23 15:00:11 UTC (rev 47476)
+++ scummvm/trunk/engines/sci/sound/music.cpp 2010-01-23 15:01:17 UTC (rev 47477)
@@ -180,7 +180,11 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list