INNER CODE UNIT · TypeScript

isMusicPlayingRaw

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

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 {
  bloom_play_sound_3d(sound.handle, x, y, z);
}

export function setListenerPosition(x: number, y: number, z: number, forwardX: number, forwardY: number, forwardZ: number): void {
  bloom_set_listener_position(x, y, z, forwardX, forwardY, forwardZ);
}

// ---- EN-062: live spatial voices --------------------------------------------
//
// playSound3D is fire-and-forget — it cannot loop and it cannot move. These
// calls are the *emitter* API: play returns a voice id you hold onto and

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…