Skip to main content

dispatch_once

Function dispatch_once 

Source
fn dispatch_once(audio: &AudioPlayer, path: Option<PathBuf>, volume: f32)
Expand description

Play a one-shot once path has been resolved (bundled id or custom file). None path or non-positive volume is a no-op. Shared by the bundled and custom command shims so the guard logic is tested once.