12 lines
366 B
TypeScript
12 lines
366 B
TypeScript
import * as loader from "tc-loader";
|
|
import {Stage} from "tc-loader";
|
|
import {setAudioBackend} from "tc-shared/audio/Player";
|
|
import {WebAudioBackend} from "../audio/Player";
|
|
|
|
loader.register_task(Stage.JAVASCRIPT_INITIALIZING, {
|
|
name: "audio backend init",
|
|
function: async () => {
|
|
setAudioBackend(new WebAudioBackend());
|
|
},
|
|
priority: 100
|
|
}); |