_SNDRATE - QB64 Wiki


From QB64 Wiki

Jump to: navigation, search

The _SNDRATE function returns the sample rate frequency per second of the current computer's sound card.


SampleRate = _SNDRATE

  • 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:

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
  • What links here
  • Related changes
  • Special pages
  • Printable version