irapt/error.rs
1//! Error types returned by `irapt`.
2
3/// An error returned when the supplied [`Parameters`](crate::Parameters) are invalid or conflict with each other.
4#[derive(Clone, Debug)]
5#[non_exhaustive]
6pub enum InvalidParameterError {
7 /// The supplied `half_interploation_window_len` is too large for the given `pitch_range`, `sample_rate`, and
8 /// `fft_len`.
9 InterpolationWindowTooLong {
10 /// The maximum allowable length of `half_interpolation_window_len` for the given `pitch_range` and
11 /// `sample_rate`.
12 max_length: u32,
13 },
14}