From 5df1c5ae400278103437630961208b303457756a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 13 Feb 2020 20:41:14 +0100 Subject: [PATCH] resample-native: fix phase shift --- spa/plugins/audioconvert/resample-native.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/resample-native.h b/spa/plugins/audioconvert/resample-native.h index 62eb19cfb..fc2eb71cf 100644 --- a/spa/plugins/audioconvert/resample-native.h +++ b/spa/plugins/audioconvert/resample-native.h @@ -242,7 +242,7 @@ static void impl_native_reset (struct resample *r) { struct native_data *d = r->data; memset(d->hist_mem, 0, r->channels * sizeof(float) * d->n_taps * 2); - d->hist = d->n_taps - 1; + d->hist = (d->n_taps / 2) - 1; d->phase = 0; }