A RetroSearch Logo

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

Search Query:

Showing content from https://webplatform.github.io/docs/apis/webaudio/OscillatorNode/stop below:

stop · WebPlatform Docs

stop Summary

Schedules a sound to stop playback at an exact time.

Method of apis/webaudio/OscillatorNodeapis/webaudio/OscillatorNode

Syntax
var  = OscillatorNode.stop(when);
Parameters when
Data-type
Number

Describes at what time (in seconds) the sound should stop playing. It is in the same time coordinate system as AudioContext.currentTime. If 0 is passed in for this value or if the value is less than currentTime, then the sound will stop playing immediately. stop must only be called one time and only after a call to start or stop, or an exception will be thrown.

Return Value

Returns an object of type

Examples
var oscillator = audioCtx.createOscillator();
oscillator.type = 'square';
oscillator.frequency.value = 3000; 
oscillator.start();
oscillator.stop(2); 
Related specifications
W3C Web Audio API
W3C Editor’s Draft

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