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§
- charts
- Draw charts with
plotters
during unit-testing.
Macros§
- assert_
f_ eq - Compare two floats are equal using
f32::EPSILON
- relative_
path - Get a path relative to the root directory (the one with
Cargo.toml
) of the current crate.
Structs§
Functions§
- oscillator_
buffer - Create a sine wave buffer with this duration
- rms_
level - Get RMS level for a buffer
- saw_
generator - sine_
buffer - Create a sine wave buffer with this duration
- sine_
generator - square_
generator - test_
level_ equivalence - Test two buffers have equivalent RMS levels