INNER CODE UNIT · TypeScript
updateMusic
Bloom-Engine/engine · src/audio/index.ts:114
export function updateMusic(music: Music): void { bloom_update_music_stream(music.handle); }
export function setMusicVolume(music: Music, volume: number): void {
bloom_set_music_volume(music.handle, volume);
}
/**
* @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 setMusicVolumeRaw(handle: number, volume: number): void {
bloom_set_music_volume(handle, volume);
}
export function isMusicPlaying(music: Music): boolean {