winaudio

Crates.iowinaudio
lib.rswinaudio
version1.0.2
sourcesrc
created_at2020-10-27 09:55:58.267358
updated_at2020-10-27 10:29:57.367626
descriptionEnables audio playback of waveform audio in Windows (play sounds from wav files)
homepagehttps://github.com/lonami/winaudio
repositoryhttps://github.com/lonami/winaudio
max_upload_size
id305941
size68,458
Lonami (Lonami)

documentation

https://docs.rs/winaudio

README

winaudio

Enables audio playback of waveform audio in Windows (play sounds from wav files).

Description

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();
    player.play().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.

License

All the libraries contained in this repository are licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 3

cargo fmt