INNER CODE UNIT · TypeScript

isMusicPlaying

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

export function isMusicPlaying(music: Music): boolean {
  return bloom_is_music_playing(music.handle) !== 0;
}

/**
 * @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 isMusicPlayingRaw(handle: number): boolean {
  return bloom_is_music_playing(handle) !== 0;
}

// Spatial audio

export function playSound3D(sound: Sound, x: number, y: number, z: number): void {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…