Microsoft KB Archive/21835

= Last SOUND Truncated at End of Program =

Article ID: 21835

Article Last Modified on 11/21/2006



This article was previously published under Q21835



SUMMARY
Question:

When I put SOUND statements at the end of the program and run the .EXE file, why is the sound truncated at the end?

Response:

When a program ends, the Basic run-time system is exited, which immediately stops any SOUND whose duration exceeds the time taken to execute any remaining statements in the program. If you have QuickBasic Version 2.00 or later, the problem will not occur in the editor environment, because the run-time system is still available.

To give the program time to complete its SOUND statements, give the program something to do after the SOUND (a dummy loop for example) so that the SOUND has time to finish before the program terminates.

Additional query words: QuickBas

Keywords: KB21835

-

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

© Microsoft Corporation. All rights reserved.