events.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. package webaudio
  2. // Code generated by cdproto-gen. DO NOT EDIT.
  3. // EventContextCreated notifies that a new BaseAudioContext has been created.
  4. //
  5. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextCreated
  6. type EventContextCreated struct {
  7. Context *BaseAudioContext `json:"context"`
  8. }
  9. // EventContextWillBeDestroyed notifies that an existing BaseAudioContext
  10. // will be destroyed.
  11. //
  12. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextWillBeDestroyed
  13. type EventContextWillBeDestroyed struct {
  14. ContextID GraphObjectID `json:"contextId"`
  15. }
  16. // EventContextChanged notifies that existing BaseAudioContext has changed
  17. // some properties (id stays the same)..
  18. //
  19. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextChanged
  20. type EventContextChanged struct {
  21. Context *BaseAudioContext `json:"context"`
  22. }
  23. // EventAudioListenerCreated notifies that the construction of an
  24. // AudioListener has finished.
  25. //
  26. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioListenerCreated
  27. type EventAudioListenerCreated struct {
  28. Listener *AudioListener `json:"listener"`
  29. }
  30. // EventAudioListenerWillBeDestroyed notifies that a new AudioListener has
  31. // been created.
  32. //
  33. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioListenerWillBeDestroyed
  34. type EventAudioListenerWillBeDestroyed struct {
  35. ContextID GraphObjectID `json:"contextId"`
  36. ListenerID GraphObjectID `json:"listenerId"`
  37. }
  38. // EventAudioNodeCreated notifies that a new AudioNode has been created.
  39. //
  40. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioNodeCreated
  41. type EventAudioNodeCreated struct {
  42. Node *AudioNode `json:"node"`
  43. }
  44. // EventAudioNodeWillBeDestroyed notifies that an existing AudioNode has been
  45. // destroyed.
  46. //
  47. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioNodeWillBeDestroyed
  48. type EventAudioNodeWillBeDestroyed struct {
  49. ContextID GraphObjectID `json:"contextId"`
  50. NodeID GraphObjectID `json:"nodeId"`
  51. }
  52. // EventAudioParamCreated notifies that a new AudioParam has been created.
  53. //
  54. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioParamCreated
  55. type EventAudioParamCreated struct {
  56. Param *AudioParam `json:"param"`
  57. }
  58. // EventAudioParamWillBeDestroyed notifies that an existing AudioParam has
  59. // been destroyed.
  60. //
  61. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioParamWillBeDestroyed
  62. type EventAudioParamWillBeDestroyed struct {
  63. ContextID GraphObjectID `json:"contextId"`
  64. NodeID GraphObjectID `json:"nodeId"`
  65. ParamID GraphObjectID `json:"paramId"`
  66. }
  67. // EventNodesConnected notifies that two AudioNodes are connected.
  68. //
  69. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodesConnected
  70. type EventNodesConnected struct {
  71. ContextID GraphObjectID `json:"contextId"`
  72. SourceID GraphObjectID `json:"sourceId"`
  73. DestinationID GraphObjectID `json:"destinationId"`
  74. SourceOutputIndex float64 `json:"sourceOutputIndex,omitempty"`
  75. DestinationInputIndex float64 `json:"destinationInputIndex,omitempty"`
  76. }
  77. // EventNodesDisconnected notifies that AudioNodes are disconnected. The
  78. // destination can be null, and it means all the outgoing connections from the
  79. // source are disconnected.
  80. //
  81. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodesDisconnected
  82. type EventNodesDisconnected struct {
  83. ContextID GraphObjectID `json:"contextId"`
  84. SourceID GraphObjectID `json:"sourceId"`
  85. DestinationID GraphObjectID `json:"destinationId"`
  86. SourceOutputIndex float64 `json:"sourceOutputIndex,omitempty"`
  87. DestinationInputIndex float64 `json:"destinationInputIndex,omitempty"`
  88. }
  89. // EventNodeParamConnected notifies that an AudioNode is connected to an
  90. // AudioParam.
  91. //
  92. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodeParamConnected
  93. type EventNodeParamConnected struct {
  94. ContextID GraphObjectID `json:"contextId"`
  95. SourceID GraphObjectID `json:"sourceId"`
  96. DestinationID GraphObjectID `json:"destinationId"`
  97. SourceOutputIndex float64 `json:"sourceOutputIndex,omitempty"`
  98. }
  99. // EventNodeParamDisconnected notifies that an AudioNode is disconnected to
  100. // an AudioParam.
  101. //
  102. // See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodeParamDisconnected
  103. type EventNodeParamDisconnected struct {
  104. ContextID GraphObjectID `json:"contextId"`
  105. SourceID GraphObjectID `json:"sourceId"`
  106. DestinationID GraphObjectID `json:"destinationId"`
  107. SourceOutputIndex float64 `json:"sourceOutputIndex,omitempty"`
  108. }