This crate isn't maintained, and has issues with device lifetimes (opening a stream mutably borrows the device so then you can't open a second stream from the same device). I suggest trying CPAL instead.
This is a Rust wrapper for the amazing libsoundio library
by Andrew Kelly. It is still a work in progress and
the design is still in flux. Playback and recording do work though, and the raw bindings
in libsoundio-sys
are complete.
There is another Rust wrapper for libsoundio here.
Also note this is my first Rust project, so I may have got everything totally wrong.
Shot is the best. :-)