1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-20 20:55:13 +00:00
qb64/internal/help/_SNDRAWLEN.txt
Luke Ceddia b586eafd3b Integrated _BLINEINPUT into regular LINE INPUT for BINARY files
LINE INPUT will now use the faster method if passed a file handle
that has been opened FOR BINARY. As such, the _BLINEINPUT command
has been removed.

qb64.bas now takes advantage of this for reading from '$include files,
at least in Include Manager 1. Some tweaking of internal/source/main.txt
was required to get things into a sane state, so I'm holing off changing
the compiler any further so the auto-builder can make sure everything's
smoothed over.

Note: Everything should still compile as normal; I'm just being overcautious.
2014-07-27 00:06:17 +10: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}}