#[cfg(feature = "resampler")]
mod resampler;
#[cfg(feature = "resampler")]
mod resampler_type;
#[cfg(feature = "resampler")]
pub use resampler::*;
#[cfg(feature = "resampler")]
pub use resampler_type::*;
#[cfg(feature = "channel")]
mod channel;
#[cfg(feature = "channel")]
pub use channel::*;
#[cfg(feature = "resampler")]
pub use rubato;
#[cfg(feature = "resampler")]
pub use rubato::Sample;
#[cfg(not(feature = "resampler"))]
pub trait Sample
where
Self: Copy + Send,
{
fn zero() -> Self;
}
#[cfg(not(feature = "resampler"))]
impl Sample for f32 {
fn zero() -> Self {
0.0
}
}
#[cfg(not(feature = "resampler"))]
impl Sample for f64 {
fn zero() -> Self {
0.0
}
}