2 unstable releases
new 0.2.0 | Oct 20, 2024 |
---|---|
0.1.0 | Oct 4, 2024 |
#279 in Audio
306 downloads per month
40KB
1.5K
SLoC
firefly-audio
[ 📄 docs ] [ 🐙 github ] [ 📦 crates.io ]
Rust crate for generating and processing digital audio. Powers the audio in Firefly Zero. If you're looking into using audio in a Firefly Zero app, check out Firefly Zero documentation.
Installation
cargo add firefly-audio
Usage
let mut manager = firefly_audio::Manager::new();
let node = Box::new(firefly_audio::Sine::new(440., 0.));
manager.add_node(0, node);
let mut buf = [0u8; 44_100];
manager.write(&mut buf);
Dependencies
~1.5MB
~29K SLoC