home *** CD-ROM | disk | FTP | other *** search
- /* The following includes are included in the obj file:
-
- stdio.h
- stdlib.h
- conio.h
- ctype.h
- dos.h
-
- They need not be included again.
- */
-
- #define SOUNDBLASTER 1 //Comment this line out for PC speaker.
- main() //Soundblaster Main
- {
- #ifdef SOUNDBLASTER //DO NOT USE BOTH SB + SPEAKER, they use the same interrupt and will mess things up!
- SB_initsound(); //SB Pro init
- #else
- initsound(); //Pc Speaker init
- #endif
- play("ABCDEFGabcdefg "); // A scale.
- play("?{{{{EDCDEE}E{DD}D{EE}E{EDCDEE}E{++DDED--}C "); //Merrily we roll along
- // You can put anyhting here, and the music will continue to play...
- while(!kbhit())
- {
- printf("This is just some sample code, to show it works");
- }
- stop();
- }
-
-
-