From QB64.org wiki
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 LONG value. Common values are 22050 or 44100.
- The sound card sample rate is determined by the sound card and it cannot be changed.
- See the example in _SNDRAW.