home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / CanDo / Decks3 / DiskSounds / disksound.doc next >
Encoding:
Text File  |  1990-11-05  |  1.7 KB  |  40 lines

  1. Description:
  2.  
  3. This is a deck which causes a sound file to play whenever you insert or eject
  4. a disk.  Although this is quite easy to do with CanDo, the deck is interesting
  5. from a programming standpoint because the names of the sound files are stored
  6. in the decks icon as tool types.  CanDo has a command for putting the entire
  7. tool type list in a document, but using the information in a program is a 
  8. little more difficult, so that part is worth a look.  Also, the close gadget
  9. is doing double-duty here -- when it is clicked it brings up another card 
  10. with buttons for setting the file names, playing sounds, and of course,
  11. exiting the program.  I started with the ClockBar deck from the original
  12. CanDo distribution disks.
  13.  
  14. Installation:
  15.  
  16. Two sound files are included in the Zip file.  These sound files were orig-
  17. inally located in the CanDo/Sounds directory, as you can see by the tool
  18. types in the deck icon.  If you want to put them somewhere else, you can do it
  19. in two ways: modify the deck icon with the info command from workbench, or
  20. start the deck running, click on the close gadget, and use the buttons to set
  21. the "Disk In" sound and the "Disk Out" sound (the easy way).  You may also
  22. have to change where the deck looks for DeckRunner/DeckBrowser.
  23.  
  24. Bugs:
  25.  
  26. If the icon file does not have something for tooltypes when the program starts
  27. it will cause problems.  The filename does not have to be valid, but it does
  28. have to be there.
  29.  
  30. I originally tried to add menus to the deck, but for some reason the menu 
  31. commands did not work well with the clockbar card.  The colors could not be
  32. set properly, so you could not read the menu entries.
  33.  
  34. Other than these, no other bugs have been found.
  35.  
  36. Pat Wiegand
  37. Charleston, WV
  38. (304)747-4493 (voice)
  39. (304)744-7050 (Opti-Comm BBS)
  40.