home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************/
- /* */
- /* */
- /* (c) 1993,1994 by Kaya Memisoglu */
- /* aka Marc van Shaney */
- /* */
- /* Die KOMMERZIELLE Nutzung des Source-Codes ohne meine schriftliche */
- /* Genehmigung ist untersagt. Desweiteren hafte ich für keinerlei */
- /* Schaden den das Programm verursacht. */
- /* */
- /* Geschrieben mit Borland C++ 3.1 */
- /* Borland C++ ist eingetragenes Warenzeichen der */
- /* Borland Inernational INC */
- /* */
- /* */
- /* 18.1.1994 - Kaya Memisoglu */
- /* */
- /***************************************************************************/
-
- /**
- ** This is the C example program for CDMI. It simply loads DEMO.MOD and
- ** plays it until a key is hit. Notice that you MUST first initialize
- ** the DOS-extender, or your program will not work.
- **
- ** Link this file with CDMI.OBJ EXT386.OBJ and SPEAKER.OBJ
- **
- **/
-
- #include <conio.h>
- #include "cdmi.h"
-
- extern SoundDrv *SPEAKER_Driver;
-
-
-
- void main(void)
- {
- Init_EXT386(4096,EXT_DISPLAY_INFO|EXT_VERBOSE_PAUSE|EXT_EXIT_ON_RESET);
- CDMI_Load_MOD("DEMO.MOD");
- CDMI_Play_Song(22000,LOOP_FLAG,SPEAKER_Driver);
- getch();
- CDMI_Stop_Song();
- CDMI_Free_Song();
- Exit_EXT386();
- }
-