cavacore 2.0.2

A rust wrapper of cavacore from the cava music visualizer.
Documentation

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