home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 322.lha / MED_v1.2 / English / Programmers.doc < prev    next >
Text File  |  1989-12-09  |  2KB  |  49 lines

  1. C-Programmers !!!
  2.  
  3. There is Player.c included. It is the source code for player routine.
  4. I have tried to make it as compatible as possible with all C-compilers.
  5. Unfortunately I have tested it only with Lattice...good luck!!
  6. Use "-v"-option with Lattice to turn off stack checking. You can also
  7. change "geta4()" to "__saveds".
  8.  
  9. MED2C is a program used to convert MED songs to C-code.
  10. Instructions:
  11.  
  12.   1. Arrange yourself VERY MUCH disk space. The source files will be LONG.
  13.      (depends on the song and its samples)
  14.   2. Copy the song to this disk and use CD to move there.
  15.   3. Run MED2C with the form:
  16.     MED2C <song> <path1>...
  17.      <song> is the name of the song
  18.      <path> is the path for samples. The only difference is that you
  19.             must include slash after directory name. For example:
  20.         MED2C Song2 df1:med/instruments/ ST-01:
  21.   4. Wait..............
  22.   5. Compile everything.
  23.   6. You can delete all source files. You'll now need only the object
  24.      files.
  25.   7. Include the names of the object files in your .lnk-file.
  26.  
  27. In your program:
  28.  
  29.   1. At the beginning of your program, call PLRInit(). If it returns
  30.      zero, everything is OK. Otherwise something went wrong and you
  31.      probably should quit. PLRInit() will create a new task and initialize
  32.      all things.
  33.   2. When you're ready to begin playing, call PLRPlaySong().
  34.      It'll send a message to the Player task.
  35.   3. When you want to quit playing, call PLRStop(). You can stop playing
  36.      and start it again as many times as you want to.
  37.   4. At the end of the program, call PLRRemove(). CALL IT ALWAYS!! EVEN
  38.      IF PLRInit() FAILED AND RETURNED -1 !!!!!!
  39.  
  40. You may use Player with all your own programs. Also commercial programs. 
  41. You can modify it to your needs. I would be happy if you mentioned my name.
  42.  
  43.         Teijo Kinnunen
  44.         Oksantie 19
  45.         86300  OULAINEN
  46.         FINLAND
  47.  
  48. P.S. If you find bug(s), please write me.
  49.