Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 734 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 734 Bytes

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);