wasapi 0.1.2

Bindings for the Wasapi API on Windows
docs.rs failed to build wasapi-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: wasapi-0.14.0

Wasapi bindings for Rust

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.

Supported functionality

These things have been implemented so far:

  • Audio playback and capture
  • Shared and exclusive modes
  • Loopback capture

Examples

  • The playsine example plays a sine wave in shared mode on the default output device.

  • The loopback example shows how to simultaneously capture and render sound, with separate threads for capture and render.