You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Returns a double representing an ever-increasing hardware time in seconds used for scheduling. It starts at 0 and
23
-
* cannot be stopped, paused or reset.
24
-
*/
25
-
defcurrentTime:Double= js.native
26
-
27
-
/** Returns an AudioDestinationNode representing the final destination of all audio in the context. It can be thought
28
-
* of as the audio-rendering device.
29
-
*/
30
-
valdestination:AudioDestinationNode= js.native
31
-
32
-
/** Returns the AudioListener object, used for 3D spatialization. */
33
-
vallistener:AudioListener= js.native
34
-
35
-
/** Returns a float representing the sample rate (in samples per second) used by all nodes in this context. The
36
-
* sample-rate of an AudioContext cannot be changed.
37
-
*/
38
-
valsampleRate:Double= js.native
22
+
// Returns the number of seconds of processing latency incurred by the AudioContext passing the audio from the AudioDestinationNode to the aud io subsystem.
23
+
defbaseLatency:Double= js.native
39
24
40
-
/** Returns the current state of the AudioContext. */
41
-
defstate:String= js.native
42
-
43
-
/** Closes the audio context, releasing any system audio resources that it uses. */
44
-
defclose(): js.Promise[Unit] = js.native
45
-
46
-
/** Creates an AnalyserNode, which can be used to expose audio time and frequency data and for example to create data
47
-
* visualisations.
48
-
*/
49
-
defcreateAnalyser():AnalyserNode= js.native
50
-
51
-
/** Creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter
/** Documentation is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API and available
2
+
* under the Creative Commons Attribution-ShareAlike v2.5 or later. http://creativecommons.org/licenses/by-sa/2.5/
3
+
*
4
+
* Everything else is under the MIT License http://opensource.org/licenses/MIT
5
+
*/
6
+
packageorg.scalajs.dom
7
+
8
+
importscala.scalajs.js
9
+
10
+
/** The BaseAudioContext interface of the Web Audio API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext respectively. You wouldn't use BaseAudioContext directly — you'd use its features via one of these two inheriting interfaces.
11
+
12
+
A BaseAudioContext can be a target of events, therefore it implements the EventTarget interface. */
13
+
@js.native
14
+
traitBaseAudioContextextendsEventTarget {
15
+
16
+
/** Returns a double representing an ever-increasing hardware time in seconds used for scheduling. It starts at 0 and
17
+
* cannot be stopped, paused or reset.
18
+
*/
19
+
defcurrentTime:Double= js.native
20
+
21
+
/** Returns an AudioDestinationNode representing the final destination of all audio in the context. It can be thought
22
+
* of as the audio-rendering device.
23
+
*/
24
+
valdestination:AudioDestinationNode= js.native
25
+
26
+
/** Returns the AudioListener object, used for 3D spatialization. */
27
+
vallistener:AudioListener= js.native
28
+
29
+
/** Returns a float representing the sample rate (in samples per second) used by all nodes in this context. The
30
+
* sample-rate of an AudioContext cannot be changed.
31
+
*/
32
+
valsampleRate:Double= js.native
33
+
34
+
/** Returns the current state of the AudioContext. */
35
+
defstate:String= js.native
36
+
37
+
/** Creates an AnalyserNode, which can be used to expose audio time and frequency data and for example to create data
38
+
* visualisations.
39
+
*/
40
+
defcreateAnalyser():AnalyserNode= js.native
41
+
42
+
/** Creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter
0 commit comments