A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/sampleRate below:

BaseAudioContext: sampleRate property - Web APIs

BaseAudioContext: sampleRate property

Baseline Widely available

The sampleRate property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context. This limitation means that sample-rate converters are not supported.

Value

A floating point number indicating the audio context's sample rate, in samples per second.

Examples

Note: For a full Web Audio example implementation, see one of our Web Audio Demos on the MDN GitHub repo. Try entering audioCtx.sampleRate into your browser console.

const audioCtx = new AudioContext();
// Older webkit/blink browsers require a prefix

// …

console.log(audioCtx.sampleRate);
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4