@eva/plugin-sound 1.3.0-alpha.0 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/EVA.plugin.sound.js +90 -232
  2. package/dist/EVA.plugin.sound.min.js +1 -1
  3. package/dist/packages/eva.js/lib/core/Component.d.ts +35 -0
  4. package/dist/packages/eva.js/lib/core/Component.d.ts.map +1 -0
  5. package/dist/packages/eva.js/lib/core/ComponentObserver.d.ts +22 -0
  6. package/dist/packages/eva.js/lib/core/ComponentObserver.d.ts.map +1 -0
  7. package/dist/packages/eva.js/lib/core/GameObject.d.ts +31 -0
  8. package/dist/packages/eva.js/lib/core/GameObject.d.ts.map +1 -0
  9. package/dist/packages/eva.js/lib/core/System.d.ts +30 -0
  10. package/dist/packages/eva.js/lib/core/System.d.ts.map +1 -0
  11. package/dist/packages/eva.js/lib/core/Transform.d.ts +51 -0
  12. package/dist/packages/eva.js/lib/core/Transform.d.ts.map +1 -0
  13. package/dist/packages/eva.js/lib/core/observer.d.ts +23 -0
  14. package/dist/packages/eva.js/lib/core/observer.d.ts.map +1 -0
  15. package/dist/packages/eva.js/lib/decorators/ide.d.ts +2 -0
  16. package/dist/packages/eva.js/lib/decorators/ide.d.ts.map +1 -0
  17. package/dist/packages/eva.js/lib/decorators/system.d.ts +11 -0
  18. package/dist/packages/eva.js/lib/decorators/system.d.ts.map +1 -0
  19. package/dist/packages/eva.js/lib/game/Game.d.ts +72 -0
  20. package/dist/packages/eva.js/lib/game/Game.d.ts.map +1 -0
  21. package/dist/packages/eva.js/lib/game/Scene.d.ts +12 -0
  22. package/dist/packages/eva.js/lib/game/Scene.d.ts.map +1 -0
  23. package/dist/packages/eva.js/lib/game/Ticker.d.ts +25 -0
  24. package/dist/packages/eva.js/lib/game/Ticker.d.ts.map +1 -0
  25. package/dist/packages/eva.js/lib/index.d.ts +26 -0
  26. package/dist/packages/eva.js/lib/index.d.ts.map +1 -0
  27. package/dist/packages/eva.js/lib/loader/Progress.d.ts +21 -0
  28. package/dist/packages/eva.js/lib/loader/Progress.d.ts.map +1 -0
  29. package/dist/packages/eva.js/lib/loader/Resource.d.ts +99 -0
  30. package/dist/packages/eva.js/lib/loader/Resource.d.ts.map +1 -0
  31. package/dist/packages/eva.js/lib/loader/resourceLoader.d.ts +14 -0
  32. package/dist/packages/eva.js/lib/loader/resourceLoader.d.ts.map +1 -0
  33. package/dist/packages/eva.js/lib/timeline/index.d.ts +40 -0
  34. package/dist/packages/eva.js/lib/timeline/index.d.ts.map +1 -0
  35. package/dist/packages/eva.js/lib/timeline/utils.d.ts +2 -0
  36. package/dist/packages/eva.js/lib/timeline/utils.d.ts.map +1 -0
  37. package/dist/packages/plugin-a11y/lib/A11y.d.ts +26 -0
  38. package/dist/packages/plugin-a11y/lib/A11y.d.ts.map +1 -0
  39. package/dist/packages/plugin-a11y/lib/A11ySystem.d.ts +54 -0
  40. package/dist/packages/plugin-a11y/lib/A11ySystem.d.ts.map +1 -0
  41. package/dist/packages/plugin-a11y/lib/constant.d.ts +34 -0
  42. package/dist/packages/plugin-a11y/lib/constant.d.ts.map +1 -0
  43. package/dist/packages/plugin-a11y/lib/index.d.ts +4 -0
  44. package/dist/packages/plugin-a11y/lib/index.d.ts.map +1 -0
  45. package/dist/packages/plugin-a11y/lib/utils.d.ts +6 -0
  46. package/dist/packages/plugin-a11y/lib/utils.d.ts.map +1 -0
  47. package/dist/packages/plugin-evax/lib/EvaXComponent.d.ts +20 -0
  48. package/dist/packages/plugin-evax/lib/EvaXComponent.d.ts.map +1 -0
  49. package/dist/packages/plugin-evax/lib/EvaXSystem.d.ts +33 -0
  50. package/dist/packages/plugin-evax/lib/EvaXSystem.d.ts.map +1 -0
  51. package/dist/packages/plugin-evax/lib/index.d.ts +10 -0
  52. package/dist/packages/plugin-evax/lib/index.d.ts.map +1 -0
  53. package/dist/packages/plugin-evax/lib/utils.d.ts +3 -0
  54. package/dist/packages/plugin-evax/lib/utils.d.ts.map +1 -0
  55. package/dist/packages/plugin-matterjs/lib/BodiesFactory.d.ts +31 -0
  56. package/dist/packages/plugin-matterjs/lib/BodiesFactory.d.ts.map +1 -0
  57. package/dist/packages/plugin-matterjs/lib/Physics.d.ts +32 -0
  58. package/dist/packages/plugin-matterjs/lib/Physics.d.ts.map +1 -0
  59. package/dist/packages/plugin-matterjs/lib/PhysicsEngine.d.ts +35 -0
  60. package/dist/packages/plugin-matterjs/lib/PhysicsEngine.d.ts.map +1 -0
  61. package/dist/packages/plugin-matterjs/lib/PhysicsSystem.d.ts +32 -0
  62. package/dist/packages/plugin-matterjs/lib/PhysicsSystem.d.ts.map +1 -0
  63. package/dist/packages/plugin-matterjs/lib/index.d.ts +5 -0
  64. package/dist/packages/plugin-matterjs/lib/index.d.ts.map +1 -0
  65. package/dist/packages/plugin-matterjs/lib/matter.d.ts +3 -0
  66. package/dist/packages/plugin-matterjs/lib/matter.d.ts.map +1 -0
  67. package/dist/packages/plugin-renderer/lib/Renderer.d.ts +19 -0
  68. package/dist/packages/plugin-renderer/lib/Renderer.d.ts.map +1 -0
  69. package/dist/packages/plugin-renderer/lib/System.d.ts +40 -0
  70. package/dist/packages/plugin-renderer/lib/System.d.ts.map +1 -0
  71. package/dist/packages/plugin-renderer/lib/Transform.d.ts +28 -0
  72. package/dist/packages/plugin-renderer/lib/Transform.d.ts.map +1 -0
  73. package/dist/packages/plugin-renderer/lib/compressedTexture/ability.d.ts +20 -0
  74. package/dist/packages/plugin-renderer/lib/compressedTexture/ability.d.ts.map +1 -0
  75. package/dist/packages/plugin-renderer/lib/compressedTexture/fix/loader.d.ts +2 -0
  76. package/dist/packages/plugin-renderer/lib/compressedTexture/fix/loader.d.ts.map +1 -0
  77. package/dist/packages/plugin-renderer/lib/compressedTexture/index.d.ts +7 -0
  78. package/dist/packages/plugin-renderer/lib/compressedTexture/index.d.ts.map +1 -0
  79. package/dist/packages/plugin-renderer/lib/index.d.ts +8 -0
  80. package/dist/packages/plugin-renderer/lib/index.d.ts.map +1 -0
  81. package/dist/packages/plugin-renderer/lib/manager/ContainerManager.d.ts +18 -0
  82. package/dist/packages/plugin-renderer/lib/manager/ContainerManager.d.ts.map +1 -0
  83. package/dist/packages/plugin-renderer/lib/manager/RendererManager.d.ts +17 -0
  84. package/dist/packages/plugin-renderer/lib/manager/RendererManager.d.ts.map +1 -0
  85. package/dist/packages/plugin-renderer/lib/mixin.d.ts +2 -0
  86. package/dist/packages/plugin-renderer/lib/mixin.d.ts.map +1 -0
  87. package/dist/packages/plugin-renderer-dragonbone/lib/component.d.ts +26 -0
  88. package/dist/packages/plugin-renderer-dragonbone/lib/component.d.ts.map +1 -0
  89. package/dist/packages/plugin-renderer-dragonbone/lib/db.d.ts +3 -0
  90. package/dist/packages/plugin-renderer-dragonbone/lib/db.d.ts.map +1 -0
  91. package/dist/packages/plugin-renderer-dragonbone/lib/engine.d.ts +10 -0
  92. package/dist/packages/plugin-renderer-dragonbone/lib/engine.d.ts.map +1 -0
  93. package/dist/packages/plugin-renderer-dragonbone/lib/index.d.ts +4 -0
  94. package/dist/packages/plugin-renderer-dragonbone/lib/index.d.ts.map +1 -0
  95. package/dist/packages/plugin-renderer-dragonbone/lib/system.d.ts +24 -0
  96. package/dist/packages/plugin-renderer-dragonbone/lib/system.d.ts.map +1 -0
  97. package/dist/packages/plugin-renderer-event/lib/component.d.ts +52 -0
  98. package/dist/packages/plugin-renderer-event/lib/component.d.ts.map +1 -0
  99. package/dist/packages/plugin-renderer-event/lib/index.d.ts +5 -0
  100. package/dist/packages/plugin-renderer-event/lib/index.d.ts.map +1 -0
  101. package/dist/packages/plugin-renderer-event/lib/system.d.ts +19 -0
  102. package/dist/packages/plugin-renderer-event/lib/system.d.ts.map +1 -0
  103. package/dist/packages/plugin-renderer-graphics/lib/component.d.ts +8 -0
  104. package/dist/packages/plugin-renderer-graphics/lib/component.d.ts.map +1 -0
  105. package/dist/packages/plugin-renderer-graphics/lib/index.d.ts +4 -0
  106. package/dist/packages/plugin-renderer-graphics/lib/index.d.ts.map +1 -0
  107. package/dist/packages/plugin-renderer-graphics/lib/system.d.ts +12 -0
  108. package/dist/packages/plugin-renderer-graphics/lib/system.d.ts.map +1 -0
  109. package/dist/packages/plugin-renderer-img/lib/component.d.ts +10 -0
  110. package/dist/packages/plugin-renderer-img/lib/component.d.ts.map +1 -0
  111. package/dist/packages/plugin-renderer-img/lib/index.d.ts +4 -0
  112. package/dist/packages/plugin-renderer-img/lib/index.d.ts.map +1 -0
  113. package/dist/packages/plugin-renderer-img/lib/system.d.ts +18 -0
  114. package/dist/packages/plugin-renderer-img/lib/system.d.ts.map +1 -0
  115. package/dist/packages/plugin-renderer-lottie/lib/Lottie.d.ts +27 -0
  116. package/dist/packages/plugin-renderer-lottie/lib/Lottie.d.ts.map +1 -0
  117. package/dist/packages/plugin-renderer-lottie/lib/LottieSystem.d.ts +18 -0
  118. package/dist/packages/plugin-renderer-lottie/lib/LottieSystem.d.ts.map +1 -0
  119. package/dist/packages/plugin-renderer-lottie/lib/index.d.ts +3 -0
  120. package/dist/packages/plugin-renderer-lottie/lib/index.d.ts.map +1 -0
  121. package/dist/packages/plugin-renderer-lottie/lib/lottie-pixi.d.ts +180 -0
  122. package/dist/packages/plugin-renderer-lottie/lib/lottie-pixi.d.ts.map +1 -0
  123. package/dist/packages/plugin-renderer-lottie/lib/types.d.ts +18 -0
  124. package/dist/packages/plugin-renderer-lottie/lib/types.d.ts.map +1 -0
  125. package/dist/packages/plugin-renderer-lottie/lib/utils.d.ts +2 -0
  126. package/dist/packages/plugin-renderer-lottie/lib/utils.d.ts.map +1 -0
  127. package/dist/packages/plugin-renderer-mask/lib/component.d.ts +33 -0
  128. package/dist/packages/plugin-renderer-mask/lib/component.d.ts.map +1 -0
  129. package/dist/packages/plugin-renderer-mask/lib/index.d.ts +4 -0
  130. package/dist/packages/plugin-renderer-mask/lib/index.d.ts.map +1 -0
  131. package/dist/packages/plugin-renderer-mask/lib/system.d.ts +31 -0
  132. package/dist/packages/plugin-renderer-mask/lib/system.d.ts.map +1 -0
  133. package/dist/packages/plugin-renderer-nine-patch/lib/component.d.ts +22 -0
  134. package/dist/packages/plugin-renderer-nine-patch/lib/component.d.ts.map +1 -0
  135. package/dist/packages/plugin-renderer-nine-patch/lib/index.d.ts +4 -0
  136. package/dist/packages/plugin-renderer-nine-patch/lib/index.d.ts.map +1 -0
  137. package/dist/packages/plugin-renderer-nine-patch/lib/system.d.ts +19 -0
  138. package/dist/packages/plugin-renderer-nine-patch/lib/system.d.ts.map +1 -0
  139. package/dist/packages/plugin-renderer-render/lib/component.d.ts +17 -0
  140. package/dist/packages/plugin-renderer-render/lib/component.d.ts.map +1 -0
  141. package/dist/packages/plugin-renderer-render/lib/index.d.ts +4 -0
  142. package/dist/packages/plugin-renderer-render/lib/index.d.ts.map +1 -0
  143. package/dist/packages/plugin-renderer-render/lib/system.d.ts +17 -0
  144. package/dist/packages/plugin-renderer-render/lib/system.d.ts.map +1 -0
  145. package/dist/packages/plugin-renderer-spine/lib/Spine.d.ts +4 -0
  146. package/dist/packages/plugin-renderer-spine/lib/Spine.d.ts.map +1 -0
  147. package/dist/packages/plugin-renderer-spine/lib/SpineSystem.d.ts +5 -0
  148. package/dist/packages/plugin-renderer-spine/lib/SpineSystem.d.ts.map +1 -0
  149. package/dist/packages/plugin-renderer-spine/lib/index.d.ts +4 -0
  150. package/dist/packages/plugin-renderer-spine/lib/index.d.ts.map +1 -0
  151. package/dist/packages/plugin-renderer-sprite/lib/component.d.ts +12 -0
  152. package/dist/packages/plugin-renderer-sprite/lib/component.d.ts.map +1 -0
  153. package/dist/packages/plugin-renderer-sprite/lib/index.d.ts +4 -0
  154. package/dist/packages/plugin-renderer-sprite/lib/index.d.ts.map +1 -0
  155. package/dist/packages/plugin-renderer-sprite/lib/system.d.ts +17 -0
  156. package/dist/packages/plugin-renderer-sprite/lib/system.d.ts.map +1 -0
  157. package/dist/packages/plugin-renderer-sprite-animation/lib/component.d.ts +31 -0
  158. package/dist/packages/plugin-renderer-sprite-animation/lib/component.d.ts.map +1 -0
  159. package/dist/packages/plugin-renderer-sprite-animation/lib/index.d.ts +4 -0
  160. package/dist/packages/plugin-renderer-sprite-animation/lib/index.d.ts.map +1 -0
  161. package/dist/packages/plugin-renderer-sprite-animation/lib/system.d.ts +31 -0
  162. package/dist/packages/plugin-renderer-sprite-animation/lib/system.d.ts.map +1 -0
  163. package/dist/packages/plugin-renderer-test/lib/component.d.ts +20 -0
  164. package/dist/packages/plugin-renderer-test/lib/component.d.ts.map +1 -0
  165. package/dist/packages/plugin-renderer-test/lib/index.d.ts +4 -0
  166. package/dist/packages/plugin-renderer-test/lib/index.d.ts.map +1 -0
  167. package/dist/packages/plugin-renderer-test/lib/system.d.ts +21 -0
  168. package/dist/packages/plugin-renderer-test/lib/system.d.ts.map +1 -0
  169. package/dist/packages/plugin-renderer-test/lib/system2.d.ts +12 -0
  170. package/dist/packages/plugin-renderer-test/lib/system2.d.ts.map +1 -0
  171. package/dist/packages/plugin-renderer-text/lib/component.d.ts +43 -0
  172. package/dist/packages/plugin-renderer-text/lib/component.d.ts.map +1 -0
  173. package/dist/packages/plugin-renderer-text/lib/index.d.ts +4 -0
  174. package/dist/packages/plugin-renderer-text/lib/index.d.ts.map +1 -0
  175. package/dist/packages/plugin-renderer-text/lib/system.d.ts +22 -0
  176. package/dist/packages/plugin-renderer-text/lib/system.d.ts.map +1 -0
  177. package/dist/packages/plugin-renderer-tiling-sprite/lib/component.d.ts +20 -0
  178. package/dist/packages/plugin-renderer-tiling-sprite/lib/component.d.ts.map +1 -0
  179. package/dist/packages/plugin-renderer-tiling-sprite/lib/index.d.ts +4 -0
  180. package/dist/packages/plugin-renderer-tiling-sprite/lib/index.d.ts.map +1 -0
  181. package/dist/packages/plugin-renderer-tiling-sprite/lib/system.d.ts +18 -0
  182. package/dist/packages/plugin-renderer-tiling-sprite/lib/system.d.ts.map +1 -0
  183. package/dist/packages/plugin-sound/lib/Sound.d.ts +44 -0
  184. package/dist/packages/plugin-sound/lib/Sound.d.ts.map +1 -0
  185. package/dist/packages/plugin-sound/lib/SoundSystem.d.ts +37 -0
  186. package/dist/packages/plugin-sound/lib/SoundSystem.d.ts.map +1 -0
  187. package/dist/packages/plugin-sound/lib/index.d.ts +3 -0
  188. package/dist/packages/plugin-sound/lib/index.d.ts.map +1 -0
  189. package/dist/packages/plugin-stats/lib/Stats.d.ts +19 -0
  190. package/dist/packages/plugin-stats/lib/Stats.d.ts.map +1 -0
  191. package/dist/packages/plugin-stats/lib/StatsComponent.d.ts +7 -0
  192. package/dist/packages/plugin-stats/lib/StatsComponent.d.ts.map +1 -0
  193. package/dist/packages/plugin-stats/lib/StatsSystem.d.ts +28 -0
  194. package/dist/packages/plugin-stats/lib/StatsSystem.d.ts.map +1 -0
  195. package/dist/packages/plugin-stats/lib/hooks/BaseHooks.d.ts +18 -0
  196. package/dist/packages/plugin-stats/lib/hooks/BaseHooks.d.ts.map +1 -0
  197. package/dist/packages/plugin-stats/lib/hooks/GLHook.d.ts +11 -0
  198. package/dist/packages/plugin-stats/lib/hooks/GLHook.d.ts.map +1 -0
  199. package/dist/packages/plugin-stats/lib/hooks/TextureHook.d.ts +16 -0
  200. package/dist/packages/plugin-stats/lib/hooks/TextureHook.d.ts.map +1 -0
  201. package/dist/packages/plugin-stats/lib/index.d.ts +9 -0
  202. package/dist/packages/plugin-stats/lib/index.d.ts.map +1 -0
  203. package/dist/packages/plugin-transition/lib/Animation.d.ts +38 -0
  204. package/dist/packages/plugin-transition/lib/Animation.d.ts.map +1 -0
  205. package/dist/packages/plugin-transition/lib/component.d.ts +35 -0
  206. package/dist/packages/plugin-transition/lib/component.d.ts.map +1 -0
  207. package/dist/packages/plugin-transition/lib/index.d.ts +3 -0
  208. package/dist/packages/plugin-transition/lib/index.d.ts.map +1 -0
  209. package/dist/packages/plugin-transition/lib/system.d.ts +6 -0
  210. package/dist/packages/plugin-transition/lib/system.d.ts.map +1 -0
  211. package/dist/packages/renderer-adapter/lib/Application.d.ts +3 -0
  212. package/dist/packages/renderer-adapter/lib/Application.d.ts.map +1 -0
  213. package/dist/packages/renderer-adapter/lib/Container.d.ts +5 -0
  214. package/dist/packages/renderer-adapter/lib/Container.d.ts.map +1 -0
  215. package/dist/packages/renderer-adapter/lib/Graphics.d.ts +5 -0
  216. package/dist/packages/renderer-adapter/lib/Graphics.d.ts.map +1 -0
  217. package/dist/packages/renderer-adapter/lib/NinePatch.d.ts +5 -0
  218. package/dist/packages/renderer-adapter/lib/NinePatch.d.ts.map +1 -0
  219. package/dist/packages/renderer-adapter/lib/Sprite.d.ts +9 -0
  220. package/dist/packages/renderer-adapter/lib/Sprite.d.ts.map +1 -0
  221. package/dist/packages/renderer-adapter/lib/SpriteAnimation.d.ts +14 -0
  222. package/dist/packages/renderer-adapter/lib/SpriteAnimation.d.ts.map +1 -0
  223. package/dist/packages/renderer-adapter/lib/Text.d.ts +6 -0
  224. package/dist/packages/renderer-adapter/lib/Text.d.ts.map +1 -0
  225. package/dist/packages/renderer-adapter/lib/TilingSprite.d.ts +9 -0
  226. package/dist/packages/renderer-adapter/lib/TilingSprite.d.ts.map +1 -0
  227. package/dist/packages/renderer-adapter/lib/index.d.ts +9 -0
  228. package/dist/packages/renderer-adapter/lib/index.d.ts.map +1 -0
  229. package/dist/packages/spine-base/lib/Spine.d.ts +32 -0
  230. package/dist/packages/spine-base/lib/Spine.d.ts.map +1 -0
  231. package/dist/packages/spine-base/lib/SpineData.d.ts +5 -0
  232. package/dist/packages/spine-base/lib/SpineData.d.ts.map +1 -0
  233. package/dist/packages/spine-base/lib/SpineSystem.d.ts +20 -0
  234. package/dist/packages/spine-base/lib/SpineSystem.d.ts.map +1 -0
  235. package/dist/packages/spine-base/lib/TexCache.d.ts +10 -0
  236. package/dist/packages/spine-base/lib/TexCache.d.ts.map +1 -0
  237. package/dist/packages/spine-base/lib/index.d.ts +4 -0
  238. package/dist/packages/spine-base/lib/index.d.ts.map +1 -0
  239. package/dist/plugin-sound.cjs.prod.js +2 -2
  240. package/package.json +2 -2
  241. package/dist/plugin-sound.d.ts +0 -84
@@ -1,52 +1,38 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- this.EVA = this.EVA || {};
4
- this.EVA.plugin = this.EVA.plugin || {};
5
-
6
- this.EVA.plugin.sound = function (exports, eva_js) {
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ window.EVA = window.EVA || {};
3
+ window.EVA.plugin = window.EVA.plugin || {};
4
+ var _EVA_IIFE_sound = function (exports, eva_js) {
7
5
  'use strict';
8
-
9
- var _extendStatics = function extendStatics(d, b) {
10
- _extendStatics = Object.setPrototypeOf || {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf || {
11
8
  __proto__: []
12
9
  } instanceof Array && function (d, b) {
13
10
  d.__proto__ = b;
14
11
  } || function (d, b) {
15
- for (var p in b) {
16
- if (b.hasOwnProperty(p)) d[p] = b[p];
17
- }
12
+ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
18
13
  };
19
-
20
- return _extendStatics(d, b);
14
+ return extendStatics(d, b);
21
15
  };
22
-
23
16
  function __extends(d, b) {
24
- _extendStatics(d, b);
25
-
17
+ extendStatics(d, b);
26
18
  function __() {
27
19
  this.constructor = d;
28
20
  }
29
-
30
21
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31
22
  }
32
-
33
23
  function __decorate(decorators, target, key, desc) {
34
24
  var c = arguments.length,
35
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
36
- d;
37
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
38
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
39
- }
25
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
26
+ d;
27
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
40
28
  return c > 3 && r && Object.defineProperty(target, key, r), r;
41
29
  }
42
-
43
30
  function __awaiter(thisArg, _arguments, P, generator) {
44
31
  function adopt(value) {
45
32
  return value instanceof P ? value : new P(function (resolve) {
46
33
  resolve(value);
47
34
  });
48
35
  }
49
-
50
36
  return new (P || (P = Promise))(function (resolve, reject) {
51
37
  function fulfilled(value) {
52
38
  try {
@@ -55,7 +41,6 @@ this.EVA.plugin.sound = function (exports, eva_js) {
55
41
  reject(e);
56
42
  }
57
43
  }
58
-
59
44
  function rejected(value) {
60
45
  try {
61
46
  step(generator["throw"](value));
@@ -63,29 +48,26 @@ this.EVA.plugin.sound = function (exports, eva_js) {
63
48
  reject(e);
64
49
  }
65
50
  }
66
-
67
51
  function step(result) {
68
52
  result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
69
53
  }
70
-
71
54
  step((generator = generator.apply(thisArg, _arguments || [])).next());
72
55
  });
73
56
  }
74
-
75
57
  function __generator(thisArg, body) {
76
58
  var _ = {
77
- label: 0,
78
- sent: function sent() {
79
- if (t[0] & 1) throw t[1];
80
- return t[1];
59
+ label: 0,
60
+ sent: function () {
61
+ if (t[0] & 1) throw t[1];
62
+ return t[1];
63
+ },
64
+ trys: [],
65
+ ops: []
81
66
  },
82
- trys: [],
83
- ops: []
84
- },
85
- f,
86
- y,
87
- t,
88
- g;
67
+ f,
68
+ y,
69
+ t,
70
+ g;
89
71
  return g = {
90
72
  next: verb(0),
91
73
  "throw": verb(1),
@@ -93,88 +75,66 @@ this.EVA.plugin.sound = function (exports, eva_js) {
93
75
  }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
94
76
  return this;
95
77
  }), g;
96
-
97
78
  function verb(n) {
98
79
  return function (v) {
99
80
  return step([n, v]);
100
81
  };
101
82
  }
102
-
103
83
  function step(op) {
104
84
  if (f) throw new TypeError("Generator is already executing.");
105
-
106
- while (_) {
107
- try {
108
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
109
- if (y = 0, t) op = [op[0] & 2, t.value];
110
-
111
- switch (op[0]) {
112
- case 0:
113
- case 1:
85
+ while (_) try {
86
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
87
+ if (y = 0, t) op = [op[0] & 2, t.value];
88
+ switch (op[0]) {
89
+ case 0:
90
+ case 1:
91
+ t = op;
92
+ break;
93
+ case 4:
94
+ _.label++;
95
+ return {
96
+ value: op[1],
97
+ done: false
98
+ };
99
+ case 5:
100
+ _.label++;
101
+ y = op[1];
102
+ op = [0];
103
+ continue;
104
+ case 7:
105
+ op = _.ops.pop();
106
+ _.trys.pop();
107
+ continue;
108
+ default:
109
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
110
+ _ = 0;
111
+ continue;
112
+ }
113
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
114
+ _.label = op[1];
115
+ break;
116
+ }
117
+ if (op[0] === 6 && _.label < t[1]) {
118
+ _.label = t[1];
114
119
  t = op;
115
120
  break;
116
-
117
- case 4:
118
- _.label++;
119
- return {
120
- value: op[1],
121
- done: false
122
- };
123
-
124
- case 5:
125
- _.label++;
126
- y = op[1];
127
- op = [0];
128
- continue;
129
-
130
- case 7:
131
- op = _.ops.pop();
132
-
133
- _.trys.pop();
134
-
135
- continue;
136
-
137
- default:
138
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
139
- _ = 0;
140
- continue;
141
- }
142
-
143
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
144
- _.label = op[1];
145
- break;
146
- }
147
-
148
- if (op[0] === 6 && _.label < t[1]) {
149
- _.label = t[1];
150
- t = op;
151
- break;
152
- }
153
-
154
- if (t && _.label < t[2]) {
155
- _.label = t[2];
156
-
157
- _.ops.push(op);
158
-
159
- break;
160
- }
161
-
162
- if (t[2]) _.ops.pop();
163
-
164
- _.trys.pop();
165
-
166
- continue;
167
- }
168
-
169
- op = body.call(thisArg, _);
170
- } catch (e) {
171
- op = [6, e];
172
- y = 0;
173
- } finally {
174
- f = t = 0;
121
+ }
122
+ if (t && _.label < t[2]) {
123
+ _.label = t[2];
124
+ _.ops.push(op);
125
+ break;
126
+ }
127
+ if (t[2]) _.ops.pop();
128
+ _.trys.pop();
129
+ continue;
175
130
  }
131
+ op = body.call(thisArg, _);
132
+ } catch (e) {
133
+ op = [6, e];
134
+ y = 0;
135
+ } finally {
136
+ f = t = 0;
176
137
  }
177
-
178
138
  if (op[0] & 5) throw op[1];
179
139
  return {
180
140
  value: op[0] ? op[1] : void 0,
@@ -182,14 +142,13 @@ this.EVA.plugin.sound = function (exports, eva_js) {
182
142
  };
183
143
  }
184
144
  }
185
-
186
145
  function __values(o) {
187
146
  var s = typeof Symbol === "function" && Symbol.iterator,
188
- m = s && o[s],
189
- i = 0;
147
+ m = s && o[s],
148
+ i = 0;
190
149
  if (m) return m.call(o);
191
150
  if (o && typeof o.length === "number") return {
192
- next: function next() {
151
+ next: function () {
193
152
  if (o && i >= o.length) o = void 0;
194
153
  return {
195
154
  value: o && o[i++],
@@ -199,91 +158,74 @@ this.EVA.plugin.sound = function (exports, eva_js) {
199
158
  };
200
159
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
201
160
  }
202
-
203
161
  var SoundSystem = function (_super) {
204
162
  __extends(SoundSystem, _super);
205
-
206
163
  function SoundSystem(obj) {
207
164
  var _this = _super.call(this) || this;
208
-
209
165
  _this.autoPauseAndStart = true;
210
166
  _this.components = [];
211
167
  _this.pausedComponents = [];
212
168
  _this.audioBufferCache = {};
213
169
  _this.decodeAudioPromiseMap = {};
214
-
215
170
  _extends(_this, obj);
216
-
217
171
  return _this;
218
172
  }
219
-
220
173
  Object.defineProperty(SoundSystem.prototype, "muted", {
221
- get: function get() {
174
+ get: function () {
222
175
  return this.gainNode ? this.gainNode.gain.value === 0 : false;
223
176
  },
224
- set: function set(v) {
177
+ set: function (v) {
225
178
  if (!this.gainNode) {
226
179
  return;
227
180
  }
228
-
229
181
  this.gainNode.gain.setValueAtTime(v ? 0 : 1, 0);
230
182
  },
231
183
  enumerable: false,
232
184
  configurable: true
233
185
  });
234
186
  Object.defineProperty(SoundSystem.prototype, "volume", {
235
- get: function get() {
187
+ get: function () {
236
188
  return this.gainNode ? this.gainNode.gain.value : 1;
237
189
  },
238
- set: function set(v) {
190
+ set: function (v) {
239
191
  if (!this.gainNode || typeof v !== 'number' || v < 0 || v > 1) {
240
192
  return;
241
193
  }
242
-
243
194
  this.gainNode.gain.setValueAtTime(v, 0);
244
195
  },
245
196
  enumerable: false,
246
197
  configurable: true
247
198
  });
248
199
  Object.defineProperty(SoundSystem.prototype, "audioLocked", {
249
- get: function get() {
200
+ get: function () {
250
201
  if (!this.ctx) {
251
202
  return true;
252
203
  }
253
-
254
204
  return this.ctx.state !== 'running';
255
205
  },
256
206
  enumerable: false,
257
207
  configurable: true
258
208
  });
259
-
260
209
  SoundSystem.prototype.resumeAll = function () {
261
210
  var _this = this;
262
-
263
- var handleResume = function handleResume() {
211
+ var handleResume = function () {
264
212
  _this.pausedComponents.forEach(function (component) {
265
213
  component.play();
266
214
  });
267
-
268
215
  _this.pausedComponents = [];
269
216
  };
270
-
271
217
  this.ctx.resume().then(handleResume, handleResume);
272
218
  };
273
-
274
219
  SoundSystem.prototype.pauseAll = function () {
275
220
  var _this = this;
276
-
277
221
  this.components.forEach(function (component) {
278
222
  if (component.playing) {
279
223
  _this.pausedComponents.push(component);
280
-
281
224
  component.pause();
282
225
  }
283
226
  });
284
227
  this.ctx.suspend().then();
285
228
  };
286
-
287
229
  SoundSystem.prototype.stopAll = function () {
288
230
  this.components.forEach(function (component) {
289
231
  if (component.playing) {
@@ -293,16 +235,12 @@ this.EVA.plugin.sound = function (exports, eva_js) {
293
235
  this.pausedComponents = [];
294
236
  this.ctx.suspend().then();
295
237
  };
296
-
297
238
  SoundSystem.prototype.init = function () {
298
239
  this.setupAudioContext();
299
240
  };
300
-
301
241
  SoundSystem.prototype.update = function () {
302
242
  var e_1, _a;
303
-
304
243
  var changes = this.componentObserver.clear();
305
-
306
244
  try {
307
245
  for (var changes_1 = __values(changes), changes_1_1 = changes_1.next(); !changes_1_1.done; changes_1_1 = changes_1.next()) {
308
246
  var changed = changes_1_1.value;
@@ -320,29 +258,23 @@ this.EVA.plugin.sound = function (exports, eva_js) {
320
258
  }
321
259
  }
322
260
  };
323
-
324
261
  SoundSystem.prototype.onResume = function () {
325
262
  if (!this.autoPauseAndStart) {
326
263
  return;
327
264
  }
328
-
329
265
  this.resumeAll();
330
266
  };
331
-
332
267
  SoundSystem.prototype.onPause = function () {
333
268
  if (!this.autoPauseAndStart) {
334
269
  return;
335
270
  }
336
-
337
271
  this.pauseAll();
338
272
  };
339
-
340
273
  SoundSystem.prototype.onDestroy = function () {
341
274
  this.components.forEach(function (component) {
342
275
  component.onDestroy();
343
276
  });
344
277
  this.components = [];
345
-
346
278
  if (this.ctx) {
347
279
  this.gainNode.disconnect();
348
280
  this.gainNode = null;
@@ -350,157 +282,123 @@ this.EVA.plugin.sound = function (exports, eva_js) {
350
282
  this.ctx = null;
351
283
  }
352
284
  };
353
-
354
285
  SoundSystem.prototype.componentChanged = function (changed) {
355
286
  return __awaiter(this, void 0, void 0, function () {
356
287
  return __generator(this, function (_a) {
357
288
  if (changed.componentName !== 'Sound') return [2];
358
-
359
289
  if (changed.type === eva_js.OBSERVER_TYPE.ADD) {
360
290
  this.add(changed);
361
291
  }
362
-
363
292
  return [2];
364
293
  });
365
294
  });
366
295
  };
367
-
368
296
  SoundSystem.prototype.setupAudioContext = function () {
369
297
  try {
370
298
  var AudioContext_1 = window.AudioContext || window.webkitAudioContext;
371
299
  this.ctx = new AudioContext_1();
372
300
  } catch (error) {
373
301
  console.error(error);
374
-
375
302
  if (this.onError) {
376
303
  this.onError(error);
377
304
  }
378
305
  }
379
-
380
306
  if (!this.ctx) {
381
307
  return;
382
308
  }
383
-
384
309
  this.gainNode = typeof this.ctx.createGain === 'undefined' ? this.ctx.createGainNode() : this.ctx.createGain();
385
310
  this.gainNode.gain.setValueAtTime(this.muted ? 0 : this.volume, this.ctx.currentTime);
386
311
  this.gainNode.connect(this.ctx.destination);
387
312
  this.unlockAudio();
388
313
  };
389
-
390
314
  SoundSystem.prototype.unlockAudio = function () {
391
315
  var _this = this;
392
-
393
316
  if (!this.ctx || !this.audioLocked) {
394
317
  return;
395
318
  }
396
-
397
- var unlock = function unlock() {
319
+ var unlock = function () {
398
320
  if (_this.ctx) {
399
- var removeListenerFn = function removeListenerFn() {
321
+ var removeListenerFn = function () {
400
322
  document.body.removeEventListener('touchstart', unlock);
401
323
  document.body.removeEventListener('touchend', unlock);
402
324
  document.body.removeEventListener('click', unlock);
403
325
  };
404
-
405
326
  _this.ctx.resume().then(removeListenerFn, removeListenerFn);
406
327
  }
407
328
  };
408
-
409
329
  document.body.addEventListener('touchstart', unlock);
410
330
  document.body.addEventListener('touchend', unlock);
411
331
  document.body.addEventListener('click', unlock);
412
332
  };
413
-
414
333
  SoundSystem.prototype.add = function (changed) {
415
334
  var _a;
416
-
417
335
  return __awaiter(this, void 0, void 0, function () {
418
336
  var component, config, audio, _b, _c, error_1;
419
-
420
337
  return __generator(this, function (_d) {
421
338
  switch (_d.label) {
422
339
  case 0:
423
340
  component = changed.component;
424
341
  this.components.push(component);
425
342
  _d.label = 1;
426
-
427
343
  case 1:
428
344
  _d.trys.push([1, 5,, 6]);
429
-
430
345
  config = component.config;
431
346
  component.state = 'loading';
432
347
  return [4, eva_js.resource.getResource(config.resource)];
433
-
434
348
  case 2:
435
349
  audio = _d.sent();
436
350
  if (!(!this.audioBufferCache[audio.name] && ((_a = audio === null || audio === void 0 ? void 0 : audio.data) === null || _a === void 0 ? void 0 : _a.audio))) return [3, 4];
437
351
  _b = this.audioBufferCache;
438
352
  _c = audio.name;
439
353
  return [4, this.decodeAudioData(audio.data.audio, audio.name)];
440
-
441
354
  case 3:
442
355
  _b[_c] = _d.sent();
443
356
  _d.label = 4;
444
-
445
357
  case 4:
446
358
  if (this.audioBufferCache[audio.name]) {
447
359
  component.systemContext = this.ctx;
448
360
  component.systemDestination = this.gainNode;
449
361
  component.onload(this.audioBufferCache[audio.name]);
450
362
  }
451
-
452
363
  return [3, 6];
453
-
454
364
  case 5:
455
365
  error_1 = _d.sent();
456
-
457
366
  if (this.onError) {
458
367
  this.onError(error_1);
459
368
  }
460
-
461
369
  return [3, 6];
462
-
463
370
  case 6:
464
371
  return [2];
465
372
  }
466
373
  });
467
374
  });
468
375
  };
469
-
470
376
  SoundSystem.prototype.decodeAudioData = function (arraybuffer, name) {
471
377
  var _this = this;
472
-
473
378
  if (this.decodeAudioPromiseMap[name]) {
474
379
  return this.decodeAudioPromiseMap[name];
475
380
  }
476
-
477
381
  var promise = new Promise(function (resolve, reject) {
478
382
  if (!_this.ctx) {
479
383
  reject(new Error('No audio support'));
480
384
  }
481
-
482
- var success = function success(decodedData) {
385
+ var success = function (decodedData) {
483
386
  if (_this.decodeAudioPromiseMap[name]) {
484
387
  delete _this.decodeAudioPromiseMap[name];
485
388
  }
486
-
487
389
  if (decodedData) {
488
390
  resolve(decodedData);
489
391
  } else {
490
392
  reject(new Error("Error decoding audio " + name));
491
393
  }
492
394
  };
493
-
494
- var error = function error(err) {
395
+ var error = function (err) {
495
396
  if (_this.decodeAudioPromiseMap[name]) {
496
397
  delete _this.decodeAudioPromiseMap[name];
497
398
  }
498
-
499
399
  reject(new Error(err + ". arrayBuffer byteLength: " + (arraybuffer ? arraybuffer.byteLength : 0)));
500
400
  };
501
-
502
401
  var promise = _this.ctx.decodeAudioData(arraybuffer, success, error);
503
-
504
402
  if (promise instanceof Promise) {
505
403
  promise.catch(function (err) {
506
404
  reject(new Error("catch " + err + ", arrayBuffer byteLength: " + (arraybuffer ? arraybuffer.byteLength : 0)));
@@ -510,22 +408,17 @@ this.EVA.plugin.sound = function (exports, eva_js) {
510
408
  this.decodeAudioPromiseMap[name] = promise;
511
409
  return promise;
512
410
  };
513
-
514
411
  SoundSystem.systemName = 'SoundSystem';
515
412
  SoundSystem = __decorate([eva_js.decorators.componentObserver({
516
413
  Sound: []
517
414
  })], SoundSystem);
518
415
  return SoundSystem;
519
416
  }(eva_js.System);
520
-
521
417
  var SoundSystem$1 = SoundSystem;
522
-
523
418
  var Sound = function (_super) {
524
419
  __extends(Sound, _super);
525
-
526
420
  function Sound() {
527
421
  var _this = _super !== null && _super.apply(this, arguments) || this;
528
-
529
422
  _this.state = 'unloaded';
530
423
  _this.config = {
531
424
  resource: '',
@@ -541,68 +434,55 @@ this.EVA.plugin.sound = function (exports, eva_js) {
541
434
  _this.actionQueue = [];
542
435
  return _this;
543
436
  }
544
-
545
437
  Object.defineProperty(Sound.prototype, "muted", {
546
- get: function get() {
438
+ get: function () {
547
439
  return this.gainNode ? this.gainNode.gain.value === 0 : false;
548
440
  },
549
- set: function set(v) {
441
+ set: function (v) {
550
442
  if (!this.gainNode) {
551
443
  return;
552
444
  }
553
-
554
445
  this.gainNode.gain.setValueAtTime(v ? 0 : this.config.volume, 0);
555
446
  },
556
447
  enumerable: false,
557
448
  configurable: true
558
449
  });
559
450
  Object.defineProperty(Sound.prototype, "volume", {
560
- get: function get() {
451
+ get: function () {
561
452
  return this.gainNode ? this.gainNode.gain.value : 1;
562
453
  },
563
- set: function set(v) {
454
+ set: function (v) {
564
455
  if (typeof v !== 'number' || v < 0 || v > 1) {
565
456
  return;
566
457
  }
567
-
568
458
  this.config.volume = v;
569
-
570
459
  if (!this.gainNode) {
571
460
  return;
572
461
  }
573
-
574
462
  this.gainNode.gain.setValueAtTime(v, 0);
575
463
  },
576
464
  enumerable: false,
577
465
  configurable: true
578
466
  });
579
-
580
467
  Sound.prototype.init = function (obj) {
581
468
  if (!obj) {
582
469
  return;
583
470
  }
584
-
585
471
  _extends(this.config, obj);
586
-
587
472
  if (this.config.autoplay) {
588
473
  this.actionQueue.push(this.play.bind(this));
589
474
  }
590
475
  };
591
-
592
476
  Sound.prototype.play = function () {
593
477
  var _this = this;
594
-
595
478
  if (this.state !== 'loaded') {
596
479
  this.actionQueue.push(this.play.bind(this));
597
480
  }
598
-
599
481
  this.destroySource();
600
482
  this.createSource();
601
-
602
483
  if (!this.sourceNode) {
603
484
  return;
604
485
  }
605
-
606
486
  var when = this.systemContext.currentTime;
607
487
  var offset = this.config.seek;
608
488
  var duration = this.config.duration;
@@ -612,54 +492,43 @@ this.EVA.plugin.sound = function (exports, eva_js) {
612
492
  this.paused = false;
613
493
  this.playing = true;
614
494
  this.resetConfig();
615
-
616
495
  this.endedListener = function () {
617
496
  if (!_this.sourceNode) {
618
497
  return;
619
498
  }
620
-
621
499
  if (_this.config.onEnd) {
622
500
  _this.config.onEnd();
623
501
  }
624
-
625
502
  if (_this.playing) {
626
503
  _this.destroySource();
627
504
  }
628
505
  };
629
-
630
506
  this.sourceNode.addEventListener('ended', this.endedListener);
631
507
  };
632
-
633
508
  Sound.prototype.pause = function () {
634
509
  if (this.state !== 'loaded') {
635
510
  this.actionQueue.push(this.pause.bind(this));
636
511
  }
637
-
638
512
  if (this.paused || !this.playing) {
639
513
  return;
640
514
  }
641
-
642
515
  this.paused = true;
643
516
  this.playing = false;
644
517
  this.config.seek = this.getCurrentTime();
645
518
  this.destroySource();
646
519
  };
647
-
648
520
  Sound.prototype.stop = function () {
649
521
  if (this.state !== 'loaded') {
650
522
  this.actionQueue.push(this.stop.bind(this));
651
523
  }
652
-
653
524
  if (!this.paused && !this.playing) {
654
525
  return;
655
526
  }
656
-
657
527
  this.playing = false;
658
528
  this.paused = false;
659
529
  this.destroySource();
660
530
  this.resetConfig();
661
531
  };
662
-
663
532
  Sound.prototype.onload = function (buffer) {
664
533
  this.state = 'loaded';
665
534
  this.buffer = buffer;
@@ -669,43 +538,33 @@ this.EVA.plugin.sound = function (exports, eva_js) {
669
538
  });
670
539
  this.actionQueue.length = 0;
671
540
  };
672
-
673
541
  Sound.prototype.onDestroy = function () {
674
542
  this.actionQueue.length = 0;
675
543
  this.destroySource();
676
544
  };
677
-
678
545
  Sound.prototype.resetConfig = function () {
679
546
  this.config.seek = 0;
680
547
  };
681
-
682
548
  Sound.prototype.getCurrentTime = function () {
683
549
  if (this.config.loop && this.duration > 0) {
684
550
  return (this.systemContext.currentTime - this.playTime) % this.duration;
685
551
  }
686
-
687
552
  return this.systemContext.currentTime - this.playTime;
688
553
  };
689
-
690
554
  Sound.prototype.createSource = function () {
691
555
  if (!this.systemContext || this.state !== 'loaded') {
692
556
  return;
693
557
  }
694
-
695
558
  this.sourceNode = this.systemContext.createBufferSource();
696
559
  this.sourceNode.buffer = this.buffer;
697
560
  this.sourceNode.loop = this.config.loop;
698
-
699
561
  if (!this.gainNode) {
700
562
  this.gainNode = this.systemContext.createGain();
701
563
  this.gainNode.connect(this.systemDestination);
702
-
703
564
  _extends(this, this.config);
704
565
  }
705
-
706
566
  this.sourceNode.connect(this.gainNode);
707
567
  };
708
-
709
568
  Sound.prototype.destroySource = function () {
710
569
  if (!this.sourceNode) return;
711
570
  this.sourceNode.removeEventListener('ended', this.endedListener);
@@ -716,11 +575,9 @@ this.EVA.plugin.sound = function (exports, eva_js) {
716
575
  this.playTime = 0;
717
576
  this.playing = false;
718
577
  };
719
-
720
578
  Sound.componentName = 'Sound';
721
579
  return Sound;
722
580
  }(eva_js.Component);
723
-
724
581
  var Sound$1 = Sound;
725
582
  exports.Sound = Sound$1;
726
583
  exports.SoundSystem = SoundSystem$1;
@@ -729,3 +586,4 @@ this.EVA.plugin.sound = function (exports, eva_js) {
729
586
  });
730
587
  return exports;
731
588
  }({}, EVA);
589
+ window.EVA.plugin.sound = window.EVA.plugin.sound || _EVA_IIFE_sound;