home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 581a.lha / STreplayLibrary_v33.801 / streplay.doc < prev    next >
Encoding:
Text File  |  1991-11-24  |  1.7 KB  |  45 lines

  1. "STReplay.Library" is a shared library which allows to load and play
  2. Soundtracker-Modules even from high level languages like Basic or C without
  3. any special effort.
  4. For usage examples see "play.c" and "libdemo.bas"
  5.  
  6. This is public domain; do whatever you want, sell it for not less than $50,
  7. inflame it, molest it...
  8.  
  9. No © by Olli, dem Größten
  10.  
  11.  
  12. long LoadModule(char *name)             -30
  13. -------------------------------------------
  14. Attempts to load the module named "name". Returns 0 if all was cool, -1 if
  15. the file couldn't be opened and -2 if there was no chipmem for the module.
  16. A formerly loaded song will automatically be stopped and unloaded.
  17.  
  18. void UnloadModule()                     -36
  19. -------------------------------------------
  20. Stops and frees the current module, if any.
  21.  
  22. long IsModule()                         -42
  23. -------------------------------------------
  24. Returns TRUE if any module is loaded, FALSE if not.
  25.  
  26. void StartSong()                        -48
  27. -------------------------------------------
  28. Starts current song.
  29.  
  30. void StopSong()                         -54
  31. -------------------------------------------
  32. Stops current song. The song can be restarted using StartSong().
  33.  
  34. long IsRunning()                        -60
  35. -------------------------------------------
  36. Returns TRUE if a song is running, FALSE otherwise.
  37.  
  38. -----------------------------------------------------------------------------
  39. v33.801 was modified by myself to accept mods crunched with PowerPacker,
  40. and optionally play songs only once. See the enclosed readme file for more
  41. information.
  42.  
  43.                                                Jonathan Potter
  44. -----------------------------------------------------------------------------
  45.