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

Function loadSoundAsync

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

Source from the content-addressed store, hash-verified

125declare function bloom_commit_music(handle: number): number;
126
127export async function loadSoundAsync(path: string): Promise<Sound> {
128 const stagingHandle = await spawn(() => bloom_stage_sound(path as any));
129 const handle = bloom_commit_sound(stagingHandle);
130 return { handle };
131}
132
133export async function loadMusicAsync(path: string): Promise<Music> {
134 const stagingHandle = await spawn(() => bloom_stage_sound(path as any));

Callers

nothing calls this directly

Calls 2

bloom_stage_soundFunction · 0.50
bloom_commit_soundFunction · 0.50

Tested by

no test coverage detected