We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c39f728 commit 43d0ee2Copy full SHA for 43d0ee2
src/framework/components/sound/slot.js
@@ -86,6 +86,18 @@ class SoundSlot extends EventHandler {
86
*/
87
static EVENT_STOP = 'stop';
88
89
+ /**
90
+ * Fired when a sound instance stops playing because it reached its end. The handler is passed
91
+ * the {@link SoundInstance} that ended.
92
+ *
93
+ * @event
94
+ * @example
95
+ * slot.on('end', (instance) => {
96
+ * console.log('Sound instance playback ended');
97
+ * });
98
+ */
99
+ static EVENT_END = 'end';
100
+
101
/**
102
* Fired when the sound {@link Asset} assigned to the slot is loaded. The handler is passed the
103
* loaded {@link Sound} resource.
0 commit comments