1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 15:51:20 +00:00
QB64-PE/internal/help/_SNDRATE.txt

22 lines
617 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_SNDRATE}}
The '''_SNDRATE''' function returns the sample rate frequency per second of the current computer's sound card.
{{PageSyntax}}
2016-03-18 11:36:04 +00:00
::''SampleRate'' = '''_SNDRATE'''
2016-03-18 11:36:04 +00:00
* The sample rate frequency per second value returned can be any [[INTEGER]] value. Often it is set at 22050 or 44100.
* 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}}