[Scummvm-cvs-logs] SF.net SVN: scummvm: [24809] scummvm/trunk/engines/agi

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed Dec 6 20:44:29 CET 2006


Revision: 24809
          http://scummvm.svn.sourceforge.net/scummvm/?rev=24809&view=rev
Author:   eriktorbjorn
Date:     2006-12-06 11:44:27 -0800 (Wed, 06 Dec 2006)

Log Message:
-----------
Fixed compile errors (for me at least). Still plenty of warnings, though.

Modified Paths:
--------------
    scummvm/trunk/engines/agi/agi.cpp
    scummvm/trunk/engines/agi/agi.h
    scummvm/trunk/engines/agi/sound.cpp
    scummvm/trunk/engines/agi/sound.h

Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2006-12-06 19:27:02 UTC (rev 24808)
+++ scummvm/trunk/engines/agi/agi.cpp	2006-12-06 19:44:27 UTC (rev 24809)
@@ -588,7 +588,7 @@
 	game.color_fg = 15;
 	game.color_bg = 0;
 
-	*game.name = NULL;
+	game.name[0] = '\0';
 
 	game.sbuf = (uint8 *)calloc(_WIDTH, _HEIGHT);
 	game.hires = (uint8 *)calloc(_WIDTH * 2, _HEIGHT);

Modified: scummvm/trunk/engines/agi/agi.h
===================================================================
--- scummvm/trunk/engines/agi/agi.h	2006-12-06 19:27:02 UTC (rev 24808)
+++ scummvm/trunk/engines/agi/agi.h	2006-12-06 19:44:27 UTC (rev 24809)
@@ -437,9 +437,8 @@
 	int int_version;
 	AgiEngine *_vm;
 
-	int AgiLoader_v3::load_dir(agi_dir *agid, Common::File *fp,
-						   uint32 offs, uint32 len);
-	uint8 *AgiLoader_v3::load_vol_res(agi_dir *agid);
+	int load_dir(agi_dir *agid, Common::File *fp, uint32 offs, uint32 len);
+	uint8 *load_vol_res(agi_dir *agid);
 
 public:
 

Modified: scummvm/trunk/engines/agi/sound.cpp
===================================================================
--- scummvm/trunk/engines/agi/sound.cpp	2006-12-06 19:27:02 UTC (rev 24808)
+++ scummvm/trunk/engines/agi/sound.cpp	2006-12-06 19:44:27 UTC (rev 24809)
@@ -178,18 +178,18 @@
 	struct sound_iigs_sample *smp;
 
 	debugC(3, kDebugLevelSound, "(%d)", resnum);
-	type = READ_LE_UINT16(game.sounds[resnum].rdata);
+	type = READ_LE_UINT16(_vm->game.sounds[resnum].rdata);
 
 	if (type == AGI_SOUND_SAMPLE) {
 		/* Convert sample data to 16 bit signed format
 		 */
-		smp = (struct sound_iigs_sample *)game.sounds[resnum].rdata;
+		smp = (struct sound_iigs_sample *)_vm->game.sounds[resnum].rdata;
 		size = ((int)smp->size_hi << 8) + smp->size_lo;
-		src = (uint8 *) game.sounds[resnum].rdata;
+		src = (uint8 *) _vm->game.sounds[resnum].rdata;
 		buf = (int16 *) calloc(1, 54 + (size << 1) + 100);	/* FIXME */
 		memcpy(buf, src, 54);
 		for (; size--; buf[size + 54] = ((int16) src[size + 54] - 0x80) << 4);	/* FIXME */
-		game.sounds[resnum].rdata = (uint8 *) buf;
+		_vm->game.sounds[resnum].rdata = (uint8 *) buf;
 		free(src);
 	}
 #endif				/* USE_IIGS_SOUND */
@@ -223,11 +223,11 @@
 #ifdef USE_IIGS_SOUND
 	case AGI_SOUND_SAMPLE:
 		debugC(3, kDebugLevelSound, "IIGS sample");
-		smp = (struct sound_iigs_sample *)game.sounds[resnum].rdata;
+		smp = (struct sound_iigs_sample *)_vm->game.sounds[resnum].rdata;
 		for (i = 0; i < NUM_CHANNELS; i++) {
 			chn[i].type = type;
 			chn[i].flags = 0;
-			chn[i].ins = (int16 *) & game.sounds[resnum].rdata[54];
+			chn[i].ins = (int16 *) & _vm->game.sounds[resnum].rdata[54];
 			chn[i].size = ((int)smp->size_hi << 8) + smp->size_lo;
 			chn[i].ptr = &play_sample[i];
 			chn[i].timer = 0;

Modified: scummvm/trunk/engines/agi/sound.h
===================================================================
--- scummvm/trunk/engines/agi/sound.h	2006-12-06 19:27:02 UTC (rev 24808)
+++ scummvm/trunk/engines/agi/sound.h	2006-12-06 19:44:27 UTC (rev 24809)
@@ -146,6 +146,10 @@
 	void play_agi_sound();
 	uint32 mix_sound();
 	int load_instruments(char *fname);
+#ifdef USE_IIGS_SOUND
+	void play_midi_sound();
+	void play_sample_sound();
+#endif
 };
 
 } // End of namespace Agi


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