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> nosound turn speaker off pp 185</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NOSOUND                      Turn Speaker Off                        pp 185

 Syntax:  NoSound ;

 Type:    N/A

 Form:    Procedure

 Purpose: Turn speaker off after execution of Sound 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 Sound

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