mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-20 19:45:15 +00:00
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.
21 lines
576 B
Plaintext
21 lines
576 B
Plaintext
The '''_SNDRATE''' function returns the sample rate frequency per second of the current computer's sound card.
|
|
|
|
|
|
{{PageSyntax}}
|
|
::''SampleRate'' = _SNDRATE
|
|
|
|
|
|
* The sample rate frequency per second value returned can be any [[INTEGER]] value. Often it is set at 22050.
|
|
* When used with [[_SNDRAW]] it can determine the time that a raw sound has been made. Example: t = t + 1 / _SNDRATE
|
|
* '''The sound card sample rate is determined by the sound card and it CANNOT be changed!'''
|
|
|
|
|
|
''See [[_SNDRAW]] example.''
|
|
|
|
|
|
''See also:''
|
|
* [[_SNDRAW]]
|
|
* [[_SNDRAWLEN]]
|
|
|
|
|
|
{{PageNavigation}} |