1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 17:55:52 +00:00
QB64-PE/internal/help/_SNDRAWLEN.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

23 lines
989 B
Plaintext

The '''_SNDRAWLEN''' function returns the length, in seconds, of a [[_SNDRAW]] sound currently queued.
{{PageSyntax}}
:: length# = _SNDRAWLEN
* Use the _SNDRAWLEN to determine the length of a sound queue during creation and when to stop playing the sound.
* Ensure that _SNDRAWLEN is comfortably above 0 (until you've actually finished playing sound).
* If you are getting occasional random clicks, this generally means that _SNDRAWLEN has dropped to 0.
* The [[_SNDRATE]] determines how many samples are played per second. However, the timing is achieved by the sound card and the _SNDRAWLEN, not your program!
* '''Do NOT attempt to use [[_TIMER]] or [[_DELAY]] or [[_LIMIT]] to control the timing of [[_SNDRAW]] sounds! You may use them as usual for delays or to limit your program's CPU usage, but the decision of how much sound to queue should only be based on the _SNDRAWLEN!'''
''See Example in [[_SNDRAW]]''
''See also:''
* [[_SNDRAW]]
* [[_SNDRATE]]
{{PageNavigation}}