10 releases (4 breaking)
Uses old Rust 2015
0.4.2 | Dec 5, 2015 |
---|---|
0.4.1 | Dec 5, 2015 |
0.3.0 | Dec 4, 2015 |
0.2.0 | Oct 31, 2015 |
0.0.1 | Mar 27, 2015 |
#26 in #audio-samples
25 downloads per month
11KB
180 lines
rms
A simple type for calculating and storing the RMS given some buffer of interleaved audio samples.
Usage
const WINDOW_SIZE_MS: f64 = 10.0;
let mut rms = Rms::new(WINDOW_SIZE_MS);
rms.udpate(&sample_buffer[..], dsp_settings);
println!("Average RMS across channels at the last frame: {:?}", rms.avg_at_last_frame());
println!("RMS for each channel at the last frame: {:?}", rms.per_channel_at_last_frame());
The Rms
type also implements dsp-chain
's Dsp
trait, meaning it can be updated as a node within a DspGraph.
Add the rms
crate to your dependencies like so:
[dependencies]
rms = "<version>"
Dependencies
~4.5MB
~60K SLoC