firefly-audio

Crates.iofirefly-audio
lib.rsfirefly-audio
version0.2.0
sourcesrc
created_at2024-10-04 06:46:28.791052
updated_at2024-10-20 16:38:01.259316
descriptionTree-based generator and processor for sound. Powers audio in Firefly Zero.
homepagehttps://fireflyzero.com/
repositoryhttps://github.com/firefly-zero/firefly-audio
max_upload_size
id1396225
size42,106
Gram (orsinium)

documentation

README

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);
Commit count: 84

cargo fmt