1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![doc = include_str!("../README.md")]

use rustfft::FftNum;
pub use rustfft::num_complex;
pub use rustfft::num_traits;
use rustfft::num_traits::{Float, FloatConst};

pub use cepstrum::CepstrumExtractor;
pub use conversions::{ComplexToReal, RealToComplex};
pub use windows::hann::{Hann, HannComplex};

mod fft;
mod cepstrum;
mod windows;
mod conversions;

/// Trait implemented for types that can be used with the extractor. Currently, `f32` and `f64`.
pub trait CepFloat: FftNum + Float + FloatConst {}

impl CepFloat for f32 {}
impl CepFloat for f64 {}