lrbalt / libsoxr-rs

Rust wrapper for libsoxr (resampling library for sounds)
Other
8 stars 2 forks source link

non-default qualityspec results in process error #2

Closed baadc0de closed 3 years ago

baadc0de commented 3 years ago

When the Soxr::new constructor is given a None option for the quality_spec argument, the process code finishes as expected.

When specifying a custom QualitySpec like:

Some(QualitySpec::new(
  &QualityRecipe::VeryHigh,
  QualityFlags::HI_PREC_CLOCK,
))

The process method fails with "null pointer" error. As soon as the quality_spec is changed back to None, this error goes away.

I tried with other quality recipes and flags (including 0) with the same result.

Thank you for the awesome library!

lrbalt commented 3 years ago

I can reproduce the SIGSEGV. I'll investigate.

lrbalt commented 3 years ago

should be fixed now in 0.1.5