To install in !Director, copy the CD directory into :-
   !Director.Menus.Files

and add the following 2 lines to !Director.Menus.Default :-
  IconSprites Director:Menus.Files.CD.CDIcons
  DirectorFilter "CDFS" "CDFS Filer" "Dynamic:/Director:Menus.Files.CD.CDFS" -icon IconBar -menu

You will probably find the original CDLib, on which this is based in :-
   !Director.Menus.System
and CDFS and CDFS2 in :-
   !Director.Menus.Files

----------------------------------------------------------

What happens :-
   When you click Menu on any CD icon a new menu will pop up.



The menu is :-
   Dismount
   Eject (or Open Drawer if no CD in the drive)
   Close Drawer
   Play
   Control Panel
   Pause
   Stop
   Detail

The Play entry leads to a submenu which lists all the tracks and clicking on one of the tracks causes the CD to start playing from that track.
The current track playing is ticked.
If the CD details are stored in the CDdbase file, then the menu title will be the Artist, the CD title as the first entry (greyed out), and the titles of the tracks displayed next to the track number.

The Control Panel entry leads to a submenu which tells you whether the CD is playing a track (and which one) and controls to pause, stop, previous or next track.
If no track is playing then the only control shown will be Play audio which will start from the first track.

If the Pause entry is selected then it will pause the CD and the entry will be ticked to show it paused.

The Detail entry leads to a submenu which shows the type of CD in the drive (Empty - No CD, Data, Audio or Mixed), the size of the CD in MBytes if a data or mixed CD. For audio and mixed CDs there are entries showing the total time of the CD in minutes:seconds.frames, and an entry Add ID: followed by a number. This number is the ID of the CD (same as *WhichDisc). Clicking on this entry adds the fields to the end of the CDdbase file, and then opens the file so that you can add the track details.



Notes :-
   Not all drives support the Open Drawer or Close Drawer commands
   Can't set the volume on the drive - buy a decent set of speakers or complain to me and I might add it !
   Can't configure the buffers or number of drives - That's what !Configure is for !
   The format of the CDdbase file is specified at the start of the file.
   Have had the case where different drives report a different ID ! I know it's not a perfect way to differentiate different CDs but you would have thought that the same CD would report the same ID no matter what the drive is.

   Only tested under RISC OS 4



Richard Coleman

e-mail: coleman@argonet.co.uk
web: http://www.argonet.co.uk/users/coleman

5th November 1999
