home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / CDMP16.ZIP / SOURCE.ZIP / CPLAY.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-27  |  2.0 KB  |  46 lines

  1. /***************************************************************************/
  2. /*                                                                         */
  3. /*                                                                         */
  4. /*                   (c) 1993,1994 by Kaya Memisoglu                       */
  5. /*                                    aka Marc van Shaney                  */
  6. /*                                                                         */
  7. /* Die KOMMERZIELLE Nutzung des Source-Codes ohne meine schriftliche       */
  8. /* Genehmigung ist untersagt. Desweiteren hafte ich für keinerlei          */
  9. /* Schaden den das Programm verursacht.                                    */
  10. /*                                                                         */
  11. /* Geschrieben mit Borland C++ 3.1                                         */
  12. /*     Borland C++ ist eingetragenes Warenzeichen der                      */
  13. /*                                  Borland Inernational INC               */
  14. /*                                                                         */
  15. /*                                                                         */
  16. /* 18.1.1994 - Kaya Memisoglu                                              */
  17. /*                                                                         */
  18. /***************************************************************************/
  19.  
  20. /**
  21.  ** This is the C example program for CDMI. It simply loads DEMO.MOD and
  22.  ** plays it until a key is hit. Notice that you MUST first initialize
  23.  ** the DOS-extender, or your program will not work.
  24.  **
  25.  ** Link this file with CDMI.OBJ EXT386.OBJ and SPEAKER.OBJ
  26.  **
  27.  **/
  28.  
  29. #include <conio.h>
  30. #include "cdmi.h"
  31.  
  32. extern SoundDrv *SPEAKER_Driver;
  33.  
  34.  
  35.  
  36. void main(void)
  37. {
  38.  Init_EXT386(4096,EXT_DISPLAY_INFO|EXT_VERBOSE_PAUSE|EXT_EXIT_ON_RESET);
  39.  CDMI_Load_MOD("DEMO.MOD");
  40.  CDMI_Play_Song(22000,LOOP_FLAG,SPEAKER_Driver);
  41.  getch();
  42.  CDMI_Stop_Song();
  43.  CDMI_Free_Song();
  44.  Exit_EXT386();
  45. }
  46.