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++ 3.0r4 - <b>sound_tone</b> 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>

   #include <stdlib.h>

   int main()
   {
       int cycles=5000, uptime=50, dntime=50, freq=1331;
       printf("Sound using sound_click\n");
       sound_click();
       printf("Press any key: ");
       getch();
       printf("\nSound using sound_tone\n");
       sound_tone(cycles,uptime,dntime);
       printf("Press any key: ");
       getch();
       printf("\nSound using sound_beep\n");
       sound_beep(freq);
       getch();
       return EXIT_SUCCESS;
   }

See Also

   sound_click, sound_beep



See Also: sound_click sound_beep

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