Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - sound_tone http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                sound_tone

   Usage
   #include <sound.h>
   void sound_tone(int cycles,int uptime,int dntime);

   Description
   sound_tone  plays tones. The number of cycles and the cycle times  are
   specified.

   Example
   #include <stdio.h>
   #include <sound.h>
   main()
   {
   int cycles=5000, uptime=50, dntime=50, freq=1331;
   char ch;
        printf("Sound using sound_click\n");
        sound_click());
        printf("Press any key: ");
        ch = getch();
        printf("\nSound using sound_tone\n");
        sound_tone(cycles,uptime,dntime));
        printf("Press any key: ");
        ch = getch();
        printf("\nSound using sound_beep\n");
        sound_beep(freq));
   }


See Also: sound_click sound_beep

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson