11 releases (breaking)
|new 0.9.0||Nov 29, 2021|
|0.7.0||Nov 21, 2021|
|0.3.0||Jul 8, 2021|
#93 in Audio
158 downloads per month
The aim of this crate is to provide easy and safe access to the Wasapi API for audio playback and capture.
The presented API is all safe Rust, but structs and functions closely follow the original Windows API.
For details on how to use Wasapi, please see the Windows documentation.
Bindings are generated automatically using the windows crate.
These things have been implemented so far:
- Audio playback and capture
- Shared and exclusive modes
- Loopback capture
- Notifications for volume change, device disconnect etc
||Plays a sine wave in shared mode on the default output device.|
||Shows how to simultaneously capture and render sound, with separate threads for capture and render.|
||Records audio from the default device, and saves the raw samples to a file.|