aboutsummaryrefslogtreecommitdiff
path: root/backends/dc
diff options
context:
space:
mode:
authorMax Horn2003-07-22 20:36:43 +0000
committerMax Horn2003-07-22 20:36:43 +0000
commit73e7afaf180b28daa561c7c24908f104be44858e (patch)
tree6adaa18785fcc4f51222035891e60caa7fdb1b15 /backends/dc
parentd15039d2e4f63a1c8c3cefe64bc8e8bb4364aa77 (diff)
downloadscummvm-rg350-73e7afaf180b28daa561c7c24908f104be44858e.tar.gz
scummvm-rg350-73e7afaf180b28daa561c7c24908f104be44858e.tar.bz2
scummvm-rg350-73e7afaf180b28daa561c7c24908f104be44858e.zip
adjusted to play_cdrom parameter name change in common/system.h
svn-id: r9132
Diffstat (limited to 'backends/dc')
-rw-r--r--backends/dc/dc.h2
-rw-r--r--backends/dc/dcmain.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/backends/dc/dc.h b/backends/dc/dc.h
index 77513c14e0..e022976de9 100644
--- a/backends/dc/dc.h
+++ b/backends/dc/dc.h
@@ -60,7 +60,7 @@ class OSystem_Dreamcast : public OSystem {
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();
diff --git a/backends/dc/dcmain.cpp b/backends/dc/dcmain.cpp
index e0114673c8..3b7b1e584c 100644
--- a/backends/dc/dcmain.cpp
+++ b/backends/dc/dcmain.cpp
@@ -74,8 +74,7 @@ static bool find_track(int track, int &first_sec, int &last_sec)
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 @@ void OSystem_Dreamcast::play_cdrom(int track, int num_loops,
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);
}