mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Make the Amiga option costumes/palette only again.
svn-id: r9057
This commit is contained in:
+1
-1
@@ -629,7 +629,7 @@ Scumm::Scumm (GameDetector *detector, OSystem *syst)
|
||||
_imuse = NULL;
|
||||
_playerV2 = NULL;
|
||||
} else if (_features & GF_OLD_BUNDLE) {
|
||||
if ((_features & GF_AMIGA) || ((_version == 1) && (_gameId == GID_MANIAC)))
|
||||
if ((_version == 1) && (_gameId == GID_MANIAC))
|
||||
_playerV2 = NULL;
|
||||
else
|
||||
_playerV2 = new Player_V2(this);
|
||||
|
||||
+16
-14
@@ -489,21 +489,23 @@ void Sound::playSound(int soundID) {
|
||||
if ((_scumm->_features & GF_AMIGA) && (_scumm->_version == 3))
|
||||
{
|
||||
// experimental support for Indy3 Amiga sound effects
|
||||
if (READ_BE_UINT16(ptr + 26) == 0x00FF) // looped sound
|
||||
// TODO: support looping sounds
|
||||
// ptr + 14 seems to be looping duration
|
||||
flags = 0;
|
||||
else if (READ_BE_UINT16(ptr + 26) == 0x0001) // nonlooped sound
|
||||
flags = 0; //
|
||||
else if (READ_BE_UINT16(ptr + 26) == 0x0101) // background music
|
||||
// TODO: support music
|
||||
bool amigatest = (READ_LE_UINT16(ptr + 26) == 0x0001) || (READ_LE_UINT16(ptr + 26) == 0x0001)
|
||||
|| (READ_LE_UINT16(ptr + 26) == 0x00FF);
|
||||
if (amigatest) {
|
||||
if (READ_BE_UINT16(ptr + 26) == 0x00FF) // looped sound
|
||||
// TODO: support looping sounds
|
||||
// ptr + 14 seems to be looping duration
|
||||
flags = 0;
|
||||
else if (READ_BE_UINT16(ptr + 26) == 0x0001) // nonlooped sound
|
||||
flags = 0; //
|
||||
else if (READ_BE_UINT16(ptr + 26) == 0x0101) // background music
|
||||
// TODO: support music
|
||||
return;
|
||||
size = READ_BE_UINT16(ptr + 12);
|
||||
rate = 11000;
|
||||
_scumm->_mixer->playRaw(NULL, ptr + 28, size, rate, flags, soundID);
|
||||
return;
|
||||
else
|
||||
debug(3,"Unknown sound type detected!");
|
||||
size = READ_BE_UINT16(ptr + 12);
|
||||
rate = 11000;
|
||||
_scumm->_mixer->playRaw(NULL, ptr + 28, size, rate, flags, soundID);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (_scumm->_features & GF_OLD_BUNDLE) {
|
||||
|
||||
Reference in New Issue
Block a user