Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>sound sound the speaker</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SOUND                    Sound the Speaker

 SOUND freq,duration

    Sounds the speaker at a specified frequency for a specified length of
    time.

        freq    A numeric expression in the range 37 to 32767; specifies,
                in Hertz, the frequency (pitch) of the tone to be sounded.

    duration    A numeric expression in the range 0 to 65535. Specifies
                the length of time the tone is to be sounded, in units of
                clock ticks. Each clock tick is 1/18.2 (0.054945054) of a
                second.

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

      Notes:    QuickBASIC continues program execution while a tone is
                being sounded, unless a second SOUND statement is
                encountered--in which case, QuickBASIC waits until the
                first tone is finished, then begins executing the second
                SOUND statement. The MB parameter of the PLAY statement,
                however, can be used to enable buffering of SOUND
                statements.

See Also: PLAY (Statement)

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