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