Skip to content

Commit

Permalink
Merge pull request #95 from HEnquist/release-0.16
Browse files Browse the repository at this point in the history
Fix test build
  • Loading branch information
HEnquist authored Oct 27, 2024
2 parents 925cc3b + 6de12ab commit d26cf3b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rubato"
version = "0.16.0"
version = "0.16.1"
rust-version = "1.61"
authors = ["HEnquist <henrik.enquist@gmail.com>"]
description = "Asynchronous resampling library intended for audio data"
Expand Down
17 changes: 11 additions & 6 deletions benches/resamplers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ use rubato::sinc_interpolator::sinc_interpolator_neon::NeonInterpolator;
#[cfg(target_arch = "x86_64")]
use rubato::sinc_interpolator::sinc_interpolator_sse::SseInterpolator;

#[cfg(feature = "fft_resampler")]
use rubato::FftFixedIn;
use rubato::{
FastFixedIn, FftFixedIn, PolynomialDegree, Resampler, SincFixedIn, SincInterpolationType,
WindowFunction,
FastFixedIn, PolynomialDegree, Resampler, SincFixedIn, SincInterpolationType, WindowFunction,
};

#[cfg(feature = "fft_resampler")]
fn bench_fftfixedin(c: &mut Criterion) {
let chunksize = 1024;
let mut resampler = FftFixedIn::<f64>::new(44100, 192000, 1024, 2, 1).unwrap();
Expand All @@ -24,6 +26,7 @@ fn bench_fftfixedin(c: &mut Criterion) {
});
}

#[cfg(feature = "fft_resampler")]
fn bench_fftfixedin_32(c: &mut Criterion) {
let chunksize = 1024;
let mut resampler = FftFixedIn::<f32>::new(44100, 192000, 1024, 2, 1).unwrap();
Expand Down Expand Up @@ -350,11 +353,12 @@ bench_fast_async_resampler!(
"fast async nearest 64"
);

#[cfg(feature = "fft_resampler")]
criterion_group!(fft_benches, bench_fftfixedin, bench_fftfixedin_32,);

#[cfg(target_arch = "x86_64")]
criterion_group!(
benches,
bench_fftfixedin,
bench_fftfixedin_32,
bench_fast_async_septic_32,
bench_fast_async_quintic_32,
bench_fast_async_cubic_32,
Expand Down Expand Up @@ -388,8 +392,6 @@ criterion_group!(
#[cfg(target_arch = "aarch64")]
criterion_group!(
benches,
bench_fftfixedin,
bench_fftfixedin_32,
bench_fast_async_septic_32,
bench_fast_async_quintic_32,
bench_fast_async_cubic_32,
Expand All @@ -414,4 +416,7 @@ criterion_group!(
bench_neon_async_nearest_64,
);

#[cfg(feature = "fft_resampler")]
criterion_main!(benches, fft_benches);
#[cfg(not(feature = "fft_resampler"))]
criterion_main!(benches);

0 comments on commit d26cf3b

Please # to comment.