A simple-as-possible, fast audio I/O stream wrapping PortAudio for Rust! It looks like this:
for event in stream {
match event {
Event::In(input_buffer) => println!("Incoming audio!"),
Event::Out(output_buffer) => println!("Time to write to output!"),
Event::Update(delta_time) => println!("Updatey stuff here."),
}
}
Put this in your Cargo.toml:
[dependencies.sound_stream]
git = "https://github.com/RustAudio/sound_stream"
For more details, see the example.
SoundStream requires that you have the PortAudio lib installed on your system. Download it here.
Same license as Rust.