SNDRATE: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:_SNDRATE}} The _SNDRATE function returns the sample rate frequency per second of the current computer's sound card. {{PageSyntax}} : {{Parameter|sampleRate&}} = _SNDRATE {{PageDescription}} * 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.''' {{PageExamples}} * See the example in [[_SNDRAW]...") |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
* The sample rate frequency per second value returned can be any [[LONG]] value. Common values are 22050 or 44100. | * 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.''' | * '''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.''' | |||
Latest revision as of 17:41, 25 November 2022
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 the example in _SNDRAW.
See also