Files
TeaSpeak-Client/modules/renderer/hooks/Sound.ts
T
2021-03-20 16:18:05 +01:00

9 lines
335 B
TypeScript

import * as loader from "tc-loader";
import {setSoundBackend} from "tc-shared/audio/Sounds";
import {NativeSoundBackend} from "../audio/Sounds";
loader.register_task(loader.Stage.JAVASCRIPT_INITIALIZING, {
name: "Native sound initialized",
function: async () => setSoundBackend(new NativeSoundBackend()),
priority: 100
});