home *** CD-ROM | disk | FTP | other *** search
/ ArtWorks ClipArt 1 / CLIPART.iso / demos / audioworks / _audiodemo / _run < prev    next >
Encoding:
Text File  |  1993-10-01  |  2.9 KB  |  74 lines

  1. | !Run file for AudioWorks digital sound editor
  2. | This Run file contains user servicable parts. See the comments below.
  3.  
  4. |----------------------------------------------------------------------------
  5. | Check if system resources are available.
  6.  
  7. if "<System$Path>" = "" then Error 0 System resources cannot be found
  8.  
  9. |----------------------------------------------------------------------------
  10. | Ensure enough memory available to run, and load our icon sprites.
  11.  
  12. WimpSlot -min 224K -max 224K
  13. IconSprites <Obey$Dir>.!Sprites
  14.  
  15. |----------------------------------------------------------------------------
  16. | Set things up so that AudioWorks and DataVox files will run AudioWorks if
  17. | they are double-clicked
  18.  
  19. Set File$Type_bd6 AudioWrk
  20. Set Alias$@RunType_bd6 Run <Obey$Dir>.!Run %%*0
  21.  
  22. Set File$Type_bd5 Envelope
  23. Set Alias$@RunType_bd5 Run <Obey$Dir>.!Run %%*0
  24.  
  25. Set File$Type_108 DataVox
  26. Set Alias$@RunType_108 Run <Obey$Dir>.!Run %%*0
  27.  
  28. |----------------------------------------------------------------------------
  29. | Ensure all the modules we need are present
  30.  
  31. RMEnsure FPEmulator 2.80 RMLoad System:Modules.FPEmulator
  32. RMEnsure FPEmulator 2.80 Error You need at least version 2.80 of the Floating Point Emulator
  33.  
  34. RMensure SharedClibrary 3.75 RMLoad System:Modules.CLib
  35. RMensure SharedClibrary 3.75 Error You need at least version 3.75 of the shared C library
  36.  
  37. RMEnsure IRQUtils 0.12 RMLoad System:Modules.IRQUtils
  38.  
  39. RMEnsure DSDriver 1.05 RMLoad <Obey$Dir>.RMStore.DSDriver
  40. RMEnsure DSDriver 1.05 Error You need DSDriver 1.05 or later. Somebody's been messing with your copy of AudioWorks!
  41.  
  42. RMEnsure WimpKey 1.00 RMLoad <Obey$Dir>.RMStore.WimpKey
  43. RMEnsure WimpKey 1.00 Error You need WimpKey 1.00 or later. Somebody's been messing with your copy of AudioWorks!
  44.  
  45. |----------------------------------------------------------------------------
  46. | AudioWorks application directory
  47. | Read-only resources must be placed in <AudioWorks$Dir>.Resources.
  48. | AudioWorks$Path is set up from this when the program is run.
  49.  
  50. Set AudioWorks$Dir <Obey$Dir>
  51. Set AudioWorks$Path_Message Sorry, but AudioWorks can't locate it's own resources!
  52.  
  53. |----------------------------------------------------------------------------
  54. | AudioWorks 'panic save' directory name (written to on fatal error)
  55. | The actual directory will be CDIR'd if it is needed
  56.  
  57. Set temp$dir <Wimp$ScrapDir>
  58. IF "<temp$dir>" = "" THEN Set temp$dir $
  59. Set AudioWorks$PanicDir <temp$dir>.AudioWorks
  60. UnSet temp$dir
  61.  
  62. |----------------------------------------------------------------------------
  63. | AudioWorks preference file name:
  64. | This is the only Writable resource used, so for network use you should
  65. | comment out this line and set the variable up as appropriate for individual
  66. | users if you want each user to have personal prefs
  67.  
  68. Set AudioWorks$Prefs <Obey$Dir>.AudioPrefs
  69.  
  70. |----------------------------------------------------------------------------
  71. | Oh, and of course, we mustn't forget to run the main program!
  72.  
  73. WimpSlot -min 224k -max 224k
  74. Run <AudioWorks$Dir>.!RunImage %*0