home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 15-02.C < prev    next >
Text File  |  1995-01-20  |  652b  |  36 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. void main(void);
  6.  
  7. void main()
  8. {
  9.    int volume;
  10.  
  11.    fg_initpm();
  12.    if (fg_testmode(9,0) == 0)
  13.    {
  14.       printf("This program requires a PCjr or ");
  15.       printf("a Tandy 1000 system.\n");
  16.       exit(1);
  17.    }
  18.  
  19.    printf("2048 Hz periodic noise...\n");
  20.    fg_voice(4,2,15,3);
  21.    fg_waitfor(18);
  22.  
  23.    printf("2048 Hz white noise...\n");
  24.    fg_voice(5,2,15,3);
  25.    fg_waitfor(18);
  26.  
  27.    printf("500 Hz tone of increasing volume...\n");
  28.    for (volume = 1; volume <= 15; volume++)
  29.    {
  30.       fg_voice(1,500,volume,0);
  31.       fg_waitfor(4);
  32.    }
  33.  
  34.    fg_quiet();
  35. }
  36.