add wildcard branches for matches on enums
This commit is contained in:
@ -34,6 +34,8 @@ impl From<SwrDitherType> for Dither {
|
||||
SWR_DITHER_NS_LOW_SHIBATA => Dither::NoiseShapingLowShibata,
|
||||
SWR_DITHER_NS_HIGH_SHIBATA => Dither::NoiseShapingHighShibata,
|
||||
SWR_DITHER_NB => Dither::None,
|
||||
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,8 @@ impl From<SwrEngine> for Engine {
|
||||
SWR_ENGINE_SWR => Engine::Software,
|
||||
SWR_ENGINE_SOXR => Engine::SoundExchange,
|
||||
SWR_ENGINE_NB => Engine::Software,
|
||||
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,8 @@ impl From<SwrFilterType> for Filter {
|
||||
SWR_FILTER_TYPE_CUBIC => Filter::Cubic,
|
||||
SWR_FILTER_TYPE_BLACKMAN_NUTTALL => Filter::BlackmanNuttall,
|
||||
SWR_FILTER_TYPE_KAISER => Filter::Kaiser,
|
||||
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user