MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / loadMusicAsync

Function loadMusicAsync

src/audio/index.ts:133–137  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

131}
132
133export async function loadMusicAsync(path: string): Promise<Music> {
134 const stagingHandle = await spawn(() => bloom_stage_sound(path as any));
135 const handle = bloom_commit_music(stagingHandle);
136 return { handle };
137}
138
139export function stageSounds(paths: string[]): number[] {
140 return parallelMap(paths, (path: string) => bloom_stage_sound(path as any));

Callers

nothing calls this directly

Calls 2

bloom_stage_soundFunction · 0.50
bloom_commit_musicFunction · 0.50

Tested by

no test coverage detected