https://github.com/firefly-zero/firefly-audio
🔊 Tree-based Rust crate for generating and manipulating audio. Powers audio in Firefly Zero.
https://github.com/firefly-zero/firefly-audio
Last synced: 4 months ago
JSON representation
🔊 Tree-based Rust crate for generating and manipulating audio. Powers audio in Firefly Zero.
- Host: GitHub
- URL: https://github.com/firefly-zero/firefly-audio
- Owner: firefly-zero
- License: other
- Created: 2024-10-04T06:34:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T16:24:07.000Z (over 1 year ago)
- Last Synced: 2025-04-13T12:28:39.716Z (about 1 year ago)
- Language: Rust
- Size: 75.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# firefly-audio
[ [📄 docs](https://docs.rs/firefly-audio/latest/firefly_audio/) ] [ [🐙 github](https://github.com/firefly-zero/firefly-audio) ] [ [📦 crates.io](https://crates.io/crates/firefly-audio) ]
Rust crate for generating and processing digital audio. Powers the audio in [Firefly Zero](https://fireflyzero.com/). If you're looking into using audio in a Firefly Zero app, check out [Firefly Zero documentation](https://docs.fireflyzero.com/dev/audio/).
## Installation
```bash
cargo add firefly-audio
```
## Usage
```rust
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);
```