BaseAudioContext: createConstantSource()-Methode

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.

Die createConstantSource()-Eigenschaft der BaseAudioContext-Schnittstelle erstellt ein ConstantSourceNode-Objekt, das eine Audioquelle ist, die kontinuierlich ein monaurales (ein-Kanal) Audiosignal ausgibt, dessen Proben alle denselben Wert haben.

Hinweis: Der ConstantSourceNode()-Konstruktor ist die empfohlene Methode, um ein ConstantSourceNode zu erstellen; siehe Erstellen eines AudioNodes.

Syntax

js
createConstantSource()

Parameter

Keine.

Rückgabewert

Eine ConstantSourceNode-Instanz.

Spezifikationen

Specification
Web Audio API
# dom-baseaudiocontext-createconstantsource

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
createConstantSource

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support