[][src]Crate winaudio

This crate serves as an abstraction over the audio functions provided by the Windows Multimedia API. In particular, it enables its users to enumerate the output devices, list their capabilities, and open them for playback. Basically, it lets you play sound files in Windows:

use winaudio::wave::Player;

fn main() {
    let mut player = Player::from_file("test.wav").unwrap();

If you're missing a certain function from the mmeapi.h header, feel free to open an issue or send a pull request to the project to add it. This initial version doesn't have methods to set the pitch or playback rate for example, but they can trivially be added if needed.



Functions to retrieve device count and capabilities.


Access to wave output devices.



Errors that can occur when working with Windows' sound API.