/
events.go
122 lines (108 loc) · 4.71 KB
/
events.go
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package webaudio
// Code generated by cdproto-gen. DO NOT EDIT.
// EventContextCreated notifies that a new BaseAudioContext has been created.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextCreated
type EventContextCreated struct {
Context *BaseAudioContext `json:"context"`
}
// EventContextWillBeDestroyed notifies that an existing BaseAudioContext
// will be destroyed.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextWillBeDestroyed
type EventContextWillBeDestroyed struct {
ContextID GraphObjectID `json:"contextId"`
}
// EventContextChanged notifies that existing BaseAudioContext has changed
// some properties (id stays the same)..
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextChanged
type EventContextChanged struct {
Context *BaseAudioContext `json:"context"`
}
// EventAudioListenerCreated notifies that the construction of an
// AudioListener has finished.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioListenerCreated
type EventAudioListenerCreated struct {
Listener *AudioListener `json:"listener"`
}
// EventAudioListenerWillBeDestroyed notifies that a new AudioListener has
// been created.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioListenerWillBeDestroyed
type EventAudioListenerWillBeDestroyed struct {
ContextID GraphObjectID `json:"contextId"`
ListenerID GraphObjectID `json:"listenerId"`
}
// EventAudioNodeCreated notifies that a new AudioNode has been created.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioNodeCreated
type EventAudioNodeCreated struct {
Node *AudioNode `json:"node"`
}
// EventAudioNodeWillBeDestroyed notifies that an existing AudioNode has been
// destroyed.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioNodeWillBeDestroyed
type EventAudioNodeWillBeDestroyed struct {
ContextID GraphObjectID `json:"contextId"`
NodeID GraphObjectID `json:"nodeId"`
}
// EventAudioParamCreated notifies that a new AudioParam has been created.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioParamCreated
type EventAudioParamCreated struct {
Param *AudioParam `json:"param"`
}
// EventAudioParamWillBeDestroyed notifies that an existing AudioParam has
// been destroyed.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioParamWillBeDestroyed
type EventAudioParamWillBeDestroyed struct {
ContextID GraphObjectID `json:"contextId"`
NodeID GraphObjectID `json:"nodeId"`
ParamID GraphObjectID `json:"paramId"`
}
// EventNodesConnected notifies that two AudioNodes are connected.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodesConnected
type EventNodesConnected struct {
ContextID GraphObjectID `json:"contextId"`
SourceID GraphObjectID `json:"sourceId"`
DestinationID GraphObjectID `json:"destinationId"`
SourceOutputIndex float64 `json:"sourceOutputIndex,omitempty"`
DestinationInputIndex float64 `json:"destinationInputIndex,omitempty"`
}
// EventNodesDisconnected notifies that AudioNodes are disconnected. The
// destination can be null, and it means all the outgoing connections from the
// source are disconnected.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodesDisconnected
type EventNodesDisconnected struct {
ContextID GraphObjectID `json:"contextId"`
SourceID GraphObjectID `json:"sourceId"`
DestinationID GraphObjectID `json:"destinationId"`
SourceOutputIndex float64 `json:"sourceOutputIndex,omitempty"`
DestinationInputIndex float64 `json:"destinationInputIndex,omitempty"`
}
// EventNodeParamConnected notifies that an AudioNode is connected to an
// AudioParam.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodeParamConnected
type EventNodeParamConnected struct {
ContextID GraphObjectID `json:"contextId"`
SourceID GraphObjectID `json:"sourceId"`
DestinationID GraphObjectID `json:"destinationId"`
SourceOutputIndex float64 `json:"sourceOutputIndex,omitempty"`
}
// EventNodeParamDisconnected notifies that an AudioNode is disconnected to
// an AudioParam.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodeParamDisconnected
type EventNodeParamDisconnected struct {
ContextID GraphObjectID `json:"contextId"`
SourceID GraphObjectID `json:"sourceId"`
DestinationID GraphObjectID `json:"destinationId"`
SourceOutputIndex float64 `json:"sourceOutputIndex,omitempty"`
}