[<<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)
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson