melies-video-editor 0.1.7 → 0.1.8
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.
- package/dist/index.cjs +7 -7
- package/dist/index.js +1394 -1352
- package/dist/types/audioControl.d.ts +14 -0
- package/package.json +1 -1
|
@@ -2,6 +2,12 @@ import type { TimelineEngine } from '@xzdarcy/react-timeline-editor';
|
|
|
2
2
|
declare class AudioControl {
|
|
3
3
|
private howlBySrc;
|
|
4
4
|
private activeByActionId;
|
|
5
|
+
/**
|
|
6
|
+
* Stop and detach an active sound instance for a given action id.
|
|
7
|
+
*
|
|
8
|
+
* This is a best-effort cleanup helper used by both `stop()` and `reset()`.
|
|
9
|
+
*/
|
|
10
|
+
private stopActiveAction;
|
|
5
11
|
private getHowl;
|
|
6
12
|
/**
|
|
7
13
|
* Ensure the underlying WebAudio context is resumed.
|
|
@@ -24,6 +30,14 @@ declare class AudioControl {
|
|
|
24
30
|
stop(data: {
|
|
25
31
|
actionId: string;
|
|
26
32
|
}): void;
|
|
33
|
+
/**
|
|
34
|
+
* Fully reset audio playback state.
|
|
35
|
+
*
|
|
36
|
+
* This is important because `audioControl` is a singleton and action IDs are
|
|
37
|
+
* stable across snapshot restores. Without a reset, we can keep references to
|
|
38
|
+
* revoked blob URLs or previous engine instances, causing silent playback.
|
|
39
|
+
*/
|
|
40
|
+
reset(): void;
|
|
27
41
|
}
|
|
28
42
|
declare const _default: AudioControl;
|
|
29
43
|
export default _default;
|