home *** CD-ROM | disk | FTP | other *** search
- /* This example will demonstrate the use of the cdda_track_length command
- in DiscChanger.
-
- (C)1995 Asimware Innovations Inc. */
-
-
- options results
- address "DiscChanger_ARexx"
-
-
- cdda_first_track
- if rc ~= 0 then do
- say 'Failed with 'rc'.'
- exit
- end
- first = result
-
- cdda_last_track
- if rc ~= 0 then do
- say 'Failed with 'rc'.'
- exit
- end
- last = result
-
- say 'Audio CD has 'last-first' tracks. 'first' to 'last'.'
- say
-
-
- do i = first to last
- cdda_track_length i
-
- if rc ~= 0 then do
- say 'Failed with 'rc'.'
- exit
- end
-
- say 'Track 'i' is 'result' frames long.'
- end
- exit
-