4 releases (stable)

2.0.2 Feb 3, 2025
0.1.0 Jan 26, 2025

#219 in Audio

Download history 91/week @ 2025-01-21 101/week @ 2025-01-28 139/week @ 2025-02-04

331 downloads per month

MIT license

28KB
577 lines

Cavacore-rs

A rewrite in rust of cavacore.

Example

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

lib.rs:

A rust rewrite of the core processing engine of cava.

Dependencies

~4MB
~75K SLoC