Skip to main content

add_ping

Function add_ping 

Source
fn add_ping(
    out: &mut [f32],
    at: usize,
    frequency: f32,
    decay: f32,
    amplitude: f32,
    phase: f32,
)
Expand description

A sound that fades out quickly: a tone of frequency decaying in decay seconds, added at at with amplitude.