decord/alpha/source/modules/checkpoint/native/useCheckpointSound.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

43 lines
1.3 KiB
TypeScript

// Module ID: 16051
// Function ID: 16052
// Name: useCheckpointSound
// Dependencies: [19, 16046, 504, 10249, 2]
// Exports: default
// Module 16051 (useCheckpointSound)
import SoundUtils from "SoundUtils" /* 10249 */;
import noop from "module_19" /* 19 */;
import CheckpointStore from "CheckpointStore" /* 16046 */;
import size from "module_2" /* 2 */;
const require = globalThis.__r;
({ useCallback: c2, useEffect: c3, useRef: closure_4 } = noop);
const result = size.fileFinishedImporting("modules/checkpoint/native/useCheckpointSound.tsx");
export default function useCheckpointSound(arg0) {
_require = arg0;
const items = [CheckpointStore];
stateFromStores = require("initialize").useStateFromStores(items, () => isMuted.isMuted);
let obj = require("initialize");
closure_3(() => () => {
const current = ref.current;
let stopResult;
if (current != null) {
stopResult = current.stop();
}
return stopResult;
}, []);
const items1 = [stateFromStores, arg0];
return closure_4(null)(() => {
if (!stateFromStores) {
const current = ref.current;
if (current != null) {
current.stop();
}
ref.current = SoundUtils.createSound(closure_0, "vibing_wumpus");
const current2 = tmp.current;
current2.play();
}
}, items1);
};