Expand description
Provides helpers for testing audio processors.
- Drawing charts from a vector with
plotters-charts - Getting asset paths relative to the crate being tested -
relative_path! - Comparing floats -
assert_f_eq - Calculating RMS -
rms_level - Generating sine buffers -
sine_buffer - Generating frequency response charts -
charts
Modules
- Draw charts with
plottersduring unit-testing.
Macros
- Compare two floats are equal using
f32::EPSILON - Get a path relative to the root directory (the one with
Cargo.toml) of the current crate.
Structs
Functions
- Create a sine wave buffer with this duration
- Get RMS level for a buffer
- Create a sine wave buffer with this duration
- Test two buffers have equivalent RMS levels