home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / GMS1.0b2 folder / GMSIntf.h < prev    next >
Encoding:
Text File  |  1994-08-16  |  1.0 KB  |  26 lines  |  [TEXT/R*ch]

  1. /* Interface file for Gandreas Music System Developer Kit */
  2. /*  Call this first, if it returns true, then music playing is possible  */
  3. pascal Boolean GMSInit();
  4.  
  5. /*  Call this to temporarily stop playback of the current music.  Should  */
  6. /*  be called on suspend events  */
  7. pascal void GMSPause();
  8.  
  9. /*  Call this to resume playback of the current music.  Call on resume  */
  10. /*  events  */
  11. pascal void GMSResume();
  12.  
  13. /*  This will clean up everything, release components, etc...  */
  14. pascal void GMSQuit();
  15.  
  16. /*  This is the actual routine to play a 'Musi' resource generated from  */
  17. /*  Midi2Musi.  It will lock it down for you - don't unlock or release  */
  18. /*  the resource until you are done playing.  If you want to stop playing  */
  19. /*  the current music and not play anything, pass NIL in  */
  20. pascal void GMSPlay (Handle h);
  21.  
  22. /*  Call this routine during your idle proc - it checks to see if the  */
  23. /*  music is done playing, and if so, causes it to repeat (don't call  */
  24. /*  this if you don't want your background music to repeat)  */
  25. pascal void GMSIdle();
  26.