home *** CD-ROM | disk | FTP | other *** search
- Program CMSTest; { a simple program to test the CMS unit }
-
- Uses CRT,CMS;
-
- Const
- base = $220;
-
- Var
- vol,tone: integer;
- finc,vinc : integer;
-
- Begin
- InitCMS;
- vol := 0;
- tone := 1;
- vinc := 1;
- finc := 2;
- Repeat
- CMSSound (1,vol,15-vol,tone*10,4);
- If vol = 15 Then
- vinc := -1;
- If vol = 0 Then
- vinc := 1;
- If tone = 15 Then
- finc := -1;
- If tone = 0 Then
- finc := 1;
- Inc(vol,vinc);
- Inc(tone,finc);
- delay (15);
- Until keypressed;
- CMSEnableVoice (0);
- CMSEnableNoise (0);
- End.
-