Crates.io | ez_audio |
lib.rs | ez_audio |
version | 0.1.6 |
source | src |
created_at | 2021-04-07 10:10:35.6748 |
updated_at | 2021-06-06 13:09:15.430275 |
description | 🔊 A easy to use audio playback library |
homepage | |
repository | |
max_upload_size | |
id | 380303 |
size | 4,073,190 |
ez-audio is a easy to use audio playback library that uses the C library miniaudio as a backend.
Currently only compiles on nightly and a C++ compiler is required as it depends on the cc crate.
MP3
WAV
Vorbis
Flac
let context = Context::new().unwrap();
let mut clip = AudioLoader::new("audio.mp3", context.clone())
.load()
.unwrap();
clip.play();
// loop forever to stop handle from being dropped
loop {}