cavacore 0.1.0

A rust wrapper of cavacore from the cava music visualizer.
docs.rs failed to build cavacore-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: cavacore-2.0.2

Cava-rs

A rust wrapper for cavacore.

Required dependencies

  • [fftw3]

Example

use cavacore::{Builder, Cavacore, Channel};

// Configure cava with the builder first...
let builder = Builder {
    // we will only listen to one channel
    channel: Channel::Mono,
    .. Builder::default()
};

let mut cava = builder.build().expect("Build cava");

// feed cava with some samples
let mut new_samples: [f64; 3] = [1., 2., 3.];

// and let it give you the bars back
let bars = cava.execute(&mut new_samples);