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

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main()
  7. {
  8.    int freq;
  9.  
  10.    fg_initpm();
  11.    printf("20 Hz tone...\n");
  12.    fg_sound(20,3);
  13.    fg_waitfor(18);
  14.  
  15.    printf("100 Hz tone...\n");
  16.    fg_sound(100,3);
  17.    fg_waitfor(18);
  18.  
  19.    printf("1000 Hz tone...\n");
  20.    fg_sound(1000,3);
  21.    fg_waitfor(18);
  22.  
  23.    printf("warble...\n");
  24.    fg_sound(400,1);
  25.    fg_sound(410,1);
  26.    fg_sound(400,1);
  27.    fg_sound(410,1);
  28.    fg_waitfor(18);
  29.  
  30.    printf("sliding tone from 100 to 500 Hz...\n");
  31.    for (freq = 100; freq <= 500; freq+=10)
  32.       fg_sound(freq,2);
  33. }
  34.