| Crates.io | cavacore |
| lib.rs | cavacore |
| version | 2.0.2 |
| created_at | 2025-01-26 01:23:42.84953+00 |
| updated_at | 2025-02-03 21:11:11.456792+00 |
| description | A rust wrapper of cavacore from the cava music visualizer. |
| homepage | |
| repository | https://github.com/TornaxO7/cavacore-rs |
| max_upload_size | |
| id | 1530990 |
| size | 45,318 |
A rewrite in rust of cavacore.
use cavacore::{CavaBuilder, Cava, Channels};
let mut cava = CavaBuilder::default()
.audio_channels(Channels::Mono)
.build()
.unwrap();
// feed cava with some samples
let mut new_samples: [f64; 3] = [1., 2., 3.];
let mut bars = cava.make_output();
// and let it give you the bars
cava.execute(&new_samples, &mut bars);