_SNDRATE

From QB64 Phoenix Edition Wiki
Revision as of 06:12, 27 August 2022 by A740g (talk | contribs) (Added a new point. The old OpenAL code was hardcoded to 44100 Hz. The miniaudio backend on the other hand will choose the device's native sample rate.)
Jump to navigation Jump to search

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


Syntax

sampleRate& = _SNDRATE


Description

  • 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.
  • Do not assume this to be a certain value. Always write code that can adapt to whatever is returned.


Examples


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link