Last SOUND Truncated at End of Program (21835)
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.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB21835 |
|