From 5ab796c4de25da84b564bd9a486cfeb5f8c5cbb3 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Mon, 9 Jun 2003 09:48:53 +0000 Subject: clear_sound_proc svn-id: r8414 --- backends/PalmOS/Src/palm.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backends/PalmOS/Src/palm.cpp') diff --git a/backends/PalmOS/Src/palm.cpp b/backends/PalmOS/Src/palm.cpp index d6a4b5e4fb..7fb2164ef0 100644 --- a/backends/PalmOS/Src/palm.cpp +++ b/backends/PalmOS/Src/palm.cpp @@ -1131,6 +1131,7 @@ void OSystem_PALMOS::play_cdrom(int track, int num_loops, int start_frame, int e if (start_frame == 0 && end_frame == 0) { MsaPlay(_msaRefNum, _msaTrack, 0, _msaPBRate); } else { + // MsaTimeToSu doesn't work ... _msaTrackStart = (UInt32) ((float)_msaStartFrame / ((float)fullLength / (float)SU)); MsaPlay(_msaRefNum, _msaTrack, _msaTrackStart, _msaPBRate); } @@ -1320,6 +1321,10 @@ bool OSystem_PALMOS::set_sound_proc(SoundProc *proc, void *param, SoundFormat fo return _sound.active; } +void OSystem_PALMOS::clear_sound_proc() { + _sound.active = false; +} + void OSystem_PALMOS::check_sound() { // currently not supported // but i need to use this function to prevent out of memory -- cgit v1.2.3