[][src]Function winconsole::console::beep

pub fn beep(frequency: u32, duration: u32)

Generates a tone on the speaker.

Arguments

Examples

Plays a note of A4 frequency for 1 second.

console::beep(440, 1000).unwrap();