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

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main()
  7. {
  8.    int i;
  9.    int freq;
  10.    int sound_array[83];
  11.  
  12.    i = 0;
  13.  
  14.    for (freq = 100; freq <= 500; freq+=10)
  15.    {
  16.       sound_array[i++] = freq;
  17.       sound_array[i++] = 8;
  18.    }
  19.    sound_array[i] = 0;
  20.  
  21.    fg_initpm();
  22.    fg_sounds(sound_array,1);
  23.  
  24.    while(fg_playing())
  25.       printf("Still playing...\n");
  26. }
  27.