INNER CODE UNIT · TypeScript

playMusic

Bloom-Engine/engine · src/audio/index.ts:68

export function playMusic(music: Music): void {
  bloom_play_music(music.handle);
}

/**
 * @internal Compiler workaround — not part of the public API.
 * Identical to the non-Raw version but takes primitives instead of
 * reading object fields (aarch64 Android Perry miscompilation where
 * obj.field reads feeding f64 FFI args arrive as NaN). Use the
 * non-Raw version; these disappear when the Perry fix ships.
 */
export function playMusicRaw(handle: number): void {
  bloom_play_music(handle);
}

export function stopMusic(music: Music): void {
  bloom_stop_music(music.handle);
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…