home *** CD-ROM | disk | FTP | other *** search
- { Interrupt drive sound demo
-
- Written by:
-
- Nels Anderson
- 92 Bishop Drive
- Framingham, MA 01701
-
- Released to the public domain
- }
-
- Uses
- Crt,Dos,Sounder;
-
- begin {Main routine}
-
- WriteLn('Sound Interrupt Demo');
- WriteLn('Hit any key to quit...');
- GetIntVec($1C,Int1CSave); {save original interrupt vector}
- SetIntVec($1C,New1CInt); {install sound interrupt}
- StartSound(@Ruddigore,99,1); {start theme song}
- repeat {song plays...}
- until KeyPressed; {...until a key is hit}
- SetIntVec($1C,Int1CSave); {fix interrupt vector}
- NoSound; {ensure sound is now off}
-
- end.