[Scummvm-cvs-logs] CVS: scummvm/sound imuse.cpp,1.27,1.28 mididrv.cpp,1.13,1.14

James Brown ender at users.sourceforge.net
Fri Apr 26 21:32:04 CEST 2002


Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv13062/sound

Modified Files:
	imuse.cpp mididrv.cpp 
Log Message:
Add autosave support, fix sm and max midi.



Index: imuse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/imuse.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** imuse.cpp	25 Apr 2002 03:37:56 -0000	1.27
--- imuse.cpp	27 Apr 2002 04:31:25 -0000	1.28
***************
*** 783,786 ****
--- 783,787 ----
  
  	pos = 0;
+ 	
  	while (pos < size) {
  		if (!memcmp(ptr + pos, tag, 4) && !index--)
***************
*** 788,791 ****
--- 789,793 ----
  		pos += READ_BE_UINT32_UNALIGNED(ptr + pos + 4) + 8;
  	}
+ 	
  	debug(1, "IMuse::findTag failed finding sound %d", sound);
  	return NULL;
***************
*** 1628,1632 ****
  	_hardware_type = driv->get_hardware_type();
  	_game_tempo = driv->get_base_tempo();
! 
  	driv->init(this,syst);
  
--- 1630,1634 ----
  	_hardware_type = driv->get_hardware_type();
  	_game_tempo = driv->get_base_tempo();
! 	
  	driv->init(this,syst);
  

Index: mididrv.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mididrv.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** mididrv.cpp	26 Apr 2002 22:38:03 -0000	1.13
--- mididrv.cpp	27 Apr 2002 04:31:25 -0000	1.14
***************
*** 92,96 ****
  }
  
! int MidiDriver_WIN::open(int mode) {
  	if (_mode != 0)
  		return MERR_ALREADY_OPEN;
--- 92,96 ----
  }
  
! int MidiDriver_WIN::open(int mode) {	
  	if (_mode != 0)
  		return MERR_ALREADY_OPEN;





More information about the Scummvm-git-logs mailing list