[Scummvm-devel] CD sound interface

Daniel Schepler schepler at math.berkeley.edu
Wed Mar 20 14:19:02 CET 2002


"J.Brown (Ender/Amigo)" <ender at enderboi.com> writes:

> Actually, I commited a patch to CVS several days ago... which does only
> use one ;)
> 
> playtrack is now obsolete... and suprise suprise, I called the function
> exactly what you posted, even the end_frame variable.
> 
> track is the track from 0. So it's pretty much always '1'.
> num_loops is the number of times to repeat, also from 0.
> 
> One play is 0, two plays is 1, etc. I believe -1 is infinity.. and yes,
> it should loop between start_frame and (if present) end_frame.

Actually, unless you've changed things (and looking at the latest CVS,
I don't think this has changed), 1 is one play, -1 is infinity.  Other
positive values should give the total number of times played, though
the MI1 CD doesn't use any other values; I can't say whether the Loom
CD does or not.  A value of 0 is probably invalid.

Also, track=n does mean play the n-th audio track.
-- 
Daniel Schepler              "Please don't disillusion me.  I
schepler at math.berkeley.edu    haven't had breakfast yet."
                                 -- Orson Scott Card




More information about the Scummvm-devel mailing list