[Scummvm-cvs-logs] CVS: scummvm/backends/dc dc.h,1.14,1.15 dcmain.cpp,1.13,1.14

Max Horn fingolfin at users.sourceforge.net
Tue Jul 22 13:37:24 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/dc
In directory sc8-pr-cvs1:/tmp/cvs-serv1455/dc

Modified Files:
	dc.h dcmain.cpp 
Log Message:
adjusted to play_cdrom parameter name change in common/system.h

Index: dc.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/dc.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- dc.h	14 Jul 2003 21:44:01 -0000	1.14
+++ dc.h	22 Jul 2003 20:36:43 -0000	1.15
@@ -60,7 +60,7 @@
   bool poll_cdrom();
 
   // Play cdrom audio track
-  void play_cdrom(int track, int num_loops, int start_frame, int end_frame);
+  void play_cdrom(int track, int num_loops, int start_frame, int duration);
   
   // Stop cdrom audio track
   void stop_cdrom();

Index: dcmain.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/dcmain.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- dcmain.cpp	6 Jul 2003 17:46:04 -0000	1.13
+++ dcmain.cpp	22 Jul 2003 20:36:43 -0000	1.14
@@ -74,8 +74,7 @@
   return false;
 }
 
-void OSystem_Dreamcast::play_cdrom(int track, int num_loops,
-				   int start_frame, int end_frame)
+void OSystem_Dreamcast::play_cdrom(int track, int num_loops, int start_frame, int duration)
 {
   int first_sec, last_sec;
 #if 1
@@ -87,7 +86,7 @@
   if(!find_track(track, first_sec, last_sec))
     return;
   if(end_frame)
-    last_sec = first_sec + start_frame + end_frame;
+    last_sec = first_sec + start_frame + duration;
   first_sec += start_frame;
   play_cdda_sectors(first_sec, last_sec, num_loops);
 }





More information about the Scummvm-git-logs mailing list