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

Function loadSound

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

Source from the content-addressed store, hash-verified

31export function closeAudioDevice(): void { bloom_close_audio(); }
32
33export function loadSound(path: string): Sound {
34 const handle = bloom_load_sound(path as any);
35 return { handle };
36}
37
38export function playSound(sound: Sound): void {
39 bloom_play_sound(sound.handle);

Callers

nothing calls this directly

Calls 1

bloom_load_soundFunction · 0.50

Tested by

no test coverage detected