-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathAudioNode.res
More file actions
67 lines (56 loc) · 1.79 KB
/
Copy pathAudioNode.res
File metadata and controls
67 lines (56 loc) · 1.79 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
open WebAudioAPI
module Impl = (
T: {
type t
},
) => {
include EventTarget.Impl({type t = T.t})
external asAudioNode: T.t => audioNode = "%identity"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
*/
@send
external connect: (T.t, ~destinationNode: audioNode, ~output: int=?, ~input: int=?) => audioNode =
"connect"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
*/
@send
external connect2: (T.t, ~destinationParam: audioParam, ~output: int=?) => unit = "connect"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
*/
@send
external disconnect: T.t => unit = "disconnect"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
*/
@send
external disconnect2: (T.t, int) => unit = "disconnect"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
*/
@send
external disconnect3: (T.t, audioNode) => unit = "disconnect"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
*/
@send
external disconnect4: (T.t, ~destinationNode: audioNode, ~output: int) => unit = "disconnect"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
*/
@send
external disconnect5: (T.t, ~destinationNode: audioNode, ~output: int, ~input: int) => unit =
"disconnect"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
*/
@send
external disconnect6: (T.t, audioParam) => unit = "disconnect"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
*/
@send
external disconnect7: (T.t, ~destinationParam: audioParam, ~output: int) => unit = "disconnect"
}