Crates.io | firefly-audio |
lib.rs | firefly-audio |
version | 0.2.0 |
source | src |
created_at | 2024-10-04 06:46:28.791052 |
updated_at | 2024-10-20 16:38:01.259316 |
description | Tree-based generator and processor for sound. Powers audio in Firefly Zero. |
homepage | https://fireflyzero.com/ |
repository | https://github.com/firefly-zero/firefly-audio |
max_upload_size | |
id | 1396225 |
size | 42,106 |
[ 📄 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.
cargo add firefly-audio
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);