From 73e7afaf180b28daa561c7c24908f104be44858e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 22 Jul 2003 20:36:43 +0000 Subject: adjusted to play_cdrom parameter name change in common/system.h svn-id: r9132 --- backends/PalmOS/Src/palm.cpp | 10 +++++----- backends/PalmOS/Src/palm.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'backends/PalmOS') diff --git a/backends/PalmOS/Src/palm.cpp b/backends/PalmOS/Src/palm.cpp index 529b720897..c6db8a2ee5 100644 --- a/backends/PalmOS/Src/palm.cpp +++ b/backends/PalmOS/Src/palm.cpp @@ -1089,7 +1089,7 @@ static void doErr(Err e, const Char *msg) { FrmCustomAlert(1000,err,0,0); } -void OSystem_PALMOS::play_cdrom(int track, int num_loops, int start_frame, int end_frame) { +void OSystem_PALMOS::play_cdrom(int track, int num_loops, int start_frame, int duration) { if (!_isCDRomAvalaible) return; @@ -1131,13 +1131,13 @@ void OSystem_PALMOS::play_cdrom(int track, int num_loops, int start_frame, int e if (start_frame > 0) start_frame += CD_FPS >> 1; - if (end_frame > 0) - end_frame += CD_FPS >> 1; + if (duration > 0) + duration += CD_FPS >> 1; _msaLoops = num_loops; _msaTrack = track + gVars->music.firstTrack - 1; // first track >= 1 ?, not 0 (0=album) _msaStartFrame = TO_MSECS(start_frame); - _msaEndFrame = TO_MSECS(end_frame); + _msaEndFrame = TO_MSECS(duration); // if gVars->MP3 audio track // Err e; @@ -1182,7 +1182,7 @@ void OSystem_PALMOS::play_cdrom(int track, int num_loops, int start_frame, int e _msaEndTime = get_msecs() + _msaTrackLength - 2000; // 2sec less ... // try to play the track - if (start_frame == 0 && end_frame == 0) { + if (start_frame == 0 && duration == 0) { MsaPlay(_msaRefNum, _msaTrack, 0, _msaPBRate); } else { // FIXME : MsaTimeToSu doesn't work ... (may work with previous FIXME) diff --git a/backends/PalmOS/Src/palm.h b/backends/PalmOS/Src/palm.h index 63498b4497..c2524c95aa 100644 --- a/backends/PalmOS/Src/palm.h +++ b/backends/PalmOS/Src/palm.h @@ -126,7 +126,7 @@ public: 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(); -- cgit v1.2.3