[Scummvm-cvs-logs] SF.net SVN: scummvm:[45992] scummvm/trunk

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Thu Nov 19 23:17:28 CET 2009


Revision: 45992
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45992&view=rev
Author:   athrxx
Date:     2009-11-19 22:17:27 +0000 (Thu, 19 Nov 2009)

Log Message:
-----------
LOL: add support for pc speaker sfx

Modified Paths:
--------------
    scummvm/trunk/dists/engine-data/kyra.dat
    scummvm/trunk/engines/kyra/lol.cpp
    scummvm/trunk/engines/kyra/lol.h
    scummvm/trunk/engines/kyra/resource.h
    scummvm/trunk/engines/kyra/sound_lol.cpp
    scummvm/trunk/engines/kyra/staticres.cpp
    scummvm/trunk/tools/create_kyradat/create_kyradat.cpp
    scummvm/trunk/tools/create_kyradat/create_kyradat.h
    scummvm/trunk/tools/create_kyradat/games.cpp
    scummvm/trunk/tools/create_kyradat/tables.cpp

Modified: scummvm/trunk/dists/engine-data/kyra.dat
===================================================================
(Binary files differ)

Modified: scummvm/trunk/engines/kyra/lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/lol.cpp	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/engines/kyra/lol.cpp	2009-11-19 22:17:27 UTC (rev 45992)
@@ -106,7 +106,7 @@
 	_healOverlay = 0;
 	_swarmSpellStatus = 0;
 
-	_ingameMT32SoundIndex = _ingameGMSoundIndex = /*_ingameADLSoundIndex =*/ 0;
+	_ingameMT32SoundIndex = _ingameGMSoundIndex = _ingamePCSpeakerSoundIndex = 0;
 
 	_charSelection = -1;
 	_characters = 0;

Modified: scummvm/trunk/engines/kyra/lol.h
===================================================================
--- scummvm/trunk/engines/kyra/lol.h	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/engines/kyra/lol.h	2009-11-19 22:17:27 UTC (rev 45992)
@@ -503,6 +503,8 @@
 	int _ingameGMSoundIndexSize;
 	const uint8 *_ingameMT32SoundIndex;
 	int _ingameMT32SoundIndexSize;
+	const uint8 *_ingamePCSpeakerSoundIndex;
+	int _ingamePCSpeakerSoundIndexSize;
 
 	AudioDataStruct _soundData[3];
 

Modified: scummvm/trunk/engines/kyra/resource.h
===================================================================
--- scummvm/trunk/engines/kyra/resource.h	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/engines/kyra/resource.h	2009-11-19 22:17:27 UTC (rev 45992)
@@ -226,7 +226,7 @@
 	kLolMusicTrackMap,
 	kLolIngameGMSfxIndex,
 	kLolIngameMT32SfxIndex,
-	//kLolIngameADLSfxIndex,
+	kLolIngamePcSpkSfxIndex,
 	kLolSpellProperties,
 	kLolGameShapeMap,
 	kLolSceneItemOffs,
@@ -235,7 +235,6 @@
 	kLolCharDefsMan,
 	kLolCharDefsWoman,
 	kLolCharDefsKieran,
-	//kLolCharDefsUnk,
 	kLolCharDefsAkshel,
 	kLolExpRequirements,
 	kLolMonsterModifiers,
@@ -293,7 +292,6 @@
 	kLolLegendData,
 	kLolMapCursorOvl,
 	kLolMapStringId,
-	//kLolMapPal,
 
 	kLolSpellbookAnim,
 	kLolSpellbookCoords,

Modified: scummvm/trunk/engines/kyra/sound_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_lol.cpp	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/engines/kyra/sound_lol.cpp	2009-11-19 22:17:27 UTC (rev 45992)
@@ -189,6 +189,8 @@
 			track = (track < _ingameMT32SoundIndexSize) ? (_ingameMT32SoundIndex[track] - 1) : -1;
 		else if (_sound->getSfxType() == Sound::kMidiGM)
 			track = (track < _ingameGMSoundIndexSize) ? (_ingameGMSoundIndex[track] - 1) : -1;
+		else if (_sound->getSfxType() == Sound::kPCSpkr)
+			track = (track < _ingamePCSpeakerSoundIndexSize) ? (_ingamePCSpeakerSoundIndex[track] - 1) : -1;
 
 		if (track == 168)
 			track = 167;

Modified: scummvm/trunk/engines/kyra/staticres.cpp
===================================================================
--- scummvm/trunk/engines/kyra/staticres.cpp	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/engines/kyra/staticres.cpp	2009-11-19 22:17:27 UTC (rev 45992)
@@ -45,7 +45,7 @@
 
 namespace Kyra {
 
-#define RESFILE_VERSION 62
+#define RESFILE_VERSION 63
 
 namespace {
 bool checkKyraDat(Common::SeekableReadStream *file) {
@@ -397,6 +397,7 @@
 		{ kLolMusicTrackMap, kRawData, "MUSIC.MAP" },
 		{ kLolIngameGMSfxIndex, kRawData, "SFX_GM.MAP" },
 		{ kLolIngameMT32SfxIndex, kRawData, "SFX_MT32.MAP" },
+		{ kLolIngamePcSpkSfxIndex, kRawData, "SFX_PCS.MAP" },
 		{ kLolSpellProperties, kLolSpellData, "SPELLS.DEF" },
 		{ kLolGameShapeMap, kRawData, "GAMESHP.MAP" },
 		{ kLolSceneItemOffs, kRawData, "ITEMOFFS.DEF" },
@@ -1867,7 +1868,7 @@
 	_musicTrackMap = _staticres->loadRawData(kLolMusicTrackMap, _musicTrackMapSize);
 	_ingameGMSoundIndex = _staticres->loadRawData(kLolIngameGMSfxIndex, _ingameGMSoundIndexSize);
 	_ingameMT32SoundIndex = _staticres->loadRawData(kLolIngameMT32SfxIndex, _ingameMT32SoundIndexSize);
-	//_ingameADLSoundIndex = _staticres->loadRawData(kLolIngameADLSfxIndex, _ingameADLSoundIndexSize);
+	_ingamePCSpeakerSoundIndex = _staticres->loadRawData(kLolIngamePcSpkSfxIndex, _ingamePCSpeakerSoundIndexSize);
 	_spellProperties = _staticres->loadSpellData(kLolSpellProperties, _spellPropertiesSize);
 	_gameShapeMap = (const int8 *)_staticres->loadRawData(kLolGameShapeMap, _gameShapeMapSize);
 	_sceneItemOffs = (const int8 *)_staticres->loadRawData(kLolSceneItemOffs, _sceneItemOffsSize);

Modified: scummvm/trunk/tools/create_kyradat/create_kyradat.cpp
===================================================================
--- scummvm/trunk/tools/create_kyradat/create_kyradat.cpp	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/tools/create_kyradat/create_kyradat.cpp	2009-11-19 22:17:27 UTC (rev 45992)
@@ -37,7 +37,7 @@
 #include "md5.h"
 
 enum {
-	kKyraDatVersion = 62,
+	kKyraDatVersion = 63,
 	kIndexSize = 12
 };
 
@@ -218,7 +218,7 @@
 	{ kLolMusicTrackMap, kTypeRawData, "MUSIC.MAP" },
 	{ kLolGMSfxIndex, kTypeRawData, "SFX_GM.MAP" },
 	{ kLolMT32SfxIndex, kTypeRawData, "SFX_MT32.MAP" },
-	//{ kLolADLSfxIndex, kTypeRawData, "SFX_ADL.MAP" },
+	{ kLolPcSpkSfxIndex, kTypeRawData, "SFX_PCS.MAP" },
 	{ kLolSpellProperties, kTypeRawData, "SPELLS.DEF" },
 	{ kLolGameShapeMap, kTypeRawData, "GAMESHP.MAP" },
 	{ kLolSceneItemOffs, kTypeRawData, "ITEMOFFS.DEF" },
@@ -881,6 +881,8 @@
 		return "kLolGMSfxIndex";
 	case kLolMT32SfxIndex:
 		return "kLolMT32SfxIndex";
+	case kLolPcSpkSfxIndex:
+		return "kLolPcSpkSfxIndex";
 	case kLolSpellProperties:
 		return "kLolSpellProperties";
 	case kLolGameShapeMap:

Modified: scummvm/trunk/tools/create_kyradat/create_kyradat.h
===================================================================
--- scummvm/trunk/tools/create_kyradat/create_kyradat.h	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/tools/create_kyradat/create_kyradat.h	2009-11-19 22:17:27 UTC (rev 45992)
@@ -197,7 +197,7 @@
 	kLolMusicTrackMap,
 	kLolGMSfxIndex,
 	kLolMT32SfxIndex,
-	//lolADLSfxIndex,
+	kLolPcSpkSfxIndex,
 	kLolSpellProperties,
 	kLolGameShapeMap,
 	kLolSceneItemOffs,
@@ -206,7 +206,6 @@
 	kLolCharDefsMan,
 	kLolCharDefsWoman,
 	kLolCharDefsKieran,
-	//lolCharDefsUnk,
 	kLolCharDefsAkshel,
 	kLolExpRequirements,
 	kLolMonsterModifiers,
@@ -264,7 +263,6 @@
 	kLolLegendData,
 	kLolMapCursorOvl,
 	kLolMapStringId,
-	//lolMapPal,
 
 	kLolSpellbookAnim,
 	kLolSpellbookCoords,

Modified: scummvm/trunk/tools/create_kyradat/games.cpp
===================================================================
--- scummvm/trunk/tools/create_kyradat/games.cpp	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/tools/create_kyradat/games.cpp	2009-11-19 22:17:27 UTC (rev 45992)
@@ -683,6 +683,7 @@
 	kLolMusicTrackMap,
 	kLolGMSfxIndex,
 	kLolMT32SfxIndex,
+	kLolPcSpkSfxIndex,
 	kLolSpellProperties,
 	kLolGameShapeMap,
 	kLolSceneItemOffs,
@@ -854,6 +855,7 @@
 	kLolMusicTrackMap,
 	kLolGMSfxIndex,
 	kLolMT32SfxIndex,
+	kLolPcSpkSfxIndex,
 	kLolSpellProperties,
 	kLolGameShapeMap,
 	kLolSceneItemOffs,

Modified: scummvm/trunk/tools/create_kyradat/tables.cpp
===================================================================
--- scummvm/trunk/tools/create_kyradat/tables.cpp	2009-11-19 17:56:48 UTC (rev 45991)
+++ scummvm/trunk/tools/create_kyradat/tables.cpp	2009-11-19 22:17:27 UTC (rev 45992)
@@ -1308,6 +1308,12 @@
 	EXTRACT_END_ENTRY
 };
 
+const ExtractEntrySearchData kLolPcSpkSfxIndexProvider[] = {
+	{ UNK_LANG, kPlatformPC, { 0x000000FA, 0x00005EFC, { { 0xA3, 0x5C, 0x69, 0xED, 0x13, 0xEC, 0x08, 0x0E, 0xFA, 0x72, 0x83, 0x0D, 0xD7, 0x8D, 0x9C, 0x70 } } } },
+
+	EXTRACT_END_ENTRY
+};
+
 const ExtractEntrySearchData kLolSpellPropertiesProvider[] = {
 	{ UNK_LANG, kPlatformPC, { 0x00000118, 0x00000B06, { { 0x27, 0x69, 0x53, 0x01, 0xA0, 0xE3, 0x76, 0xAA, 0x33, 0xA4, 0x52, 0x11, 0x52, 0xB1, 0x0E, 0xDA } } } },
 
@@ -1857,6 +1863,7 @@
 	{ kLolMusicTrackMap, kLolMusicTrackMapProvider },
 	{ kLolGMSfxIndex, kLolGMSfxIndexProvider },
 	{ kLolMT32SfxIndex, kLolMT32SfxIndexProvider },
+	{ kLolPcSpkSfxIndex, kLolPcSpkSfxIndexProvider },
 	{ kLolSpellProperties, kLolSpellPropertiesProvider },
 	{ kLolGameShapeMap, kLolGameShapeMapProvider },
 	{ kLolSceneItemOffs, kLolSceneItemOffsProvider },


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