Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> sound turn speaker on pp 185</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SOUND                        Turn Speaker On                         pp 185

 Syntax:  Sound ;

 Type:    N/A

 Form:    Procedure

 Purpose: Turn speaker on until execution of NoSound statement.


 ----------------------------------------------------------------------------


 Usage:
       CONST
          IntVar : Integer = 1000  ;  { 1000 Hz frequency }

       BEGIN
          Sound (IntVar)           ;  { Turn sound on     }
          Delay (500)              ;  { Wait 500 msec     }
          NoSound                  ;  { Turn sound off    }
       END.

See Also: Delay NoSound

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