mirror of
https://github.com/RustAudio/rodio
synced 2024-12-13 13:42:34 +00:00
9 lines
165 B
Rust
9 lines
165 B
Rust
extern crate rodio;
|
|
|
|
fn main() {
|
|
let file = std::fs::File::open("examples/beep.wav").unwrap();
|
|
|
|
rodio::play_once(file);
|
|
|
|
std::thread::sleep_ms(10000);
|
|
}
|