Microsoft KB Archive/45053

= BUG: Zero Frequency Still Plays SOUND in Macintosh QuickBasic =

Article ID: 45053

Article Last Modified on 11/21/2006



This article was previously published under Q45053



SYMPTOMS
The SOUND statement for Macintosh QuickBasic 1.00 will incorrectly play a very low sound if it is passed a frequency of 0. The syntax for the SOUND statement is as follows:

SOUND frequency,duration,volume,voice

Setting the frequency parameter to zero should either produce an &quot;illegal function call&quot; error message or not produce any sound.

To demonstrate the problem, use the following code example. Make sure the volume is set to high in the Control Panel in the Apple menu: PRINT &quot;TYPE Q OR q TO QUIT&quot; A$ = INKEY$ WHILE NOT((A$ = &quot;Q&quot;) OR (A$ = &quot;q&quot;)) A$ = INKEY$ SOUND 0,1,0 WEND END

Additional query words: MQuickB

Keywords: kbbug KB45053

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.