Skip to main content

play_sound

Function play_sound 

Source
pub fn play_sound(_effect: SoundEffect)
Expand description

Plays a sound effect (no-op on non-WASM targets).

On WASM targets, this calls the JavaScript window.playSound() function. On native targets, this is a no-op to allow testing without audio setup.