/
SourceBufferList.cljs
56 lines (39 loc) · 1.48 KB
/
SourceBufferList.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(ns web.audio.SourceBufferList
"The SourceBufferList interface represents a simple container
for multiple `web.audio.SourceBuffer` objects."
(:refer-clojure :exclude []))
(defn source-buffer
"Method.
The SourceBuffer() getter method of the `web.audio.SourceBufferList`
allows the SourceBuffer objects in the list to be accessed with
array operator (i.e. [].)
`var mySourceBuffer = SourceBufferList[index];`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/SourceBuffer`"
[this ]
(-> this (.SourceBuffer)))
(defn length
"Property.
The length read-only property of the `web.audio.SourceBufferList`
returns the number of `web.audio.SourceBuffer` objects in the
`var myListLength = SourceBufferList.length;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/length`"
[this]
(-> this (.length)))
(defn set-length!
"Property.
The length read-only property of the `web.audio.SourceBufferList`
returns the number of `web.audio.SourceBuffer` objects in the
`var myListLength = SourceBufferList.length;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/length`"
[this val]
(aset this "length" val))
(defn onaddsourcebuffer
"Property.
The event handler for the addsourcebuffer event."
[this]
(-> this (.onaddsourcebuffer)))
(defn set-onaddsourcebuffer!
"Property.
The event handler for the addsourcebuffer event."
[this val]
(aset this "onaddsourcebuffer" val))