#sound #dsp #gamedev #firefly-zero

no-std firefly-audio

Tree-based generator and processor for sound. Powers audio in Firefly Zero.

2 unstable releases

new 0.2.0 Oct 20, 2024
0.1.0 Oct 4, 2024

#279 in Audio

Download history 173/week @ 2024-10-03 12/week @ 2024-10-10 121/week @ 2024-10-17

306 downloads per month

MIT license

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