home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / amiga / midi / med210.lhw / in.adf / Programmers / Examples / example1.c < prev    next >
C/C++ Source or Header  |  1993-02-07  |  402b  |  18 lines

  1. /* This example just plays the song which is included when linking.
  2.    Compile with Lattice C 5.04 */
  3.  
  4. #include <exec/types.h>
  5. #include <libraries/dos.h>
  6. #include <proto/exec.h>
  7. #include "med.h"
  8. #include "modplayer.h"
  9.  
  10. extern struct MMD0 far song;
  11. void main() /* this can be linked without c.o */
  12. {
  13.     InitPlayer();
  14.     PlayModule(&song);
  15.     Wait(SIGBREAKF_CTRL_C); /* press Ctrl-C to quit */
  16.     RemPlayer();
  17. }
  18.