resample-native: fix phase shift

This commit is contained in:
Wim Taymans 2020-02-13 20:41:14 +01:00
parent 7267a6bc34
commit 5df1c5ae40

View file

@ -242,7 +242,7 @@ static void impl_native_reset (struct resample *r)
{ {
struct native_data *d = r->data; struct native_data *d = r->data;
memset(d->hist_mem, 0, r->channels * sizeof(float) * d->n_taps * 2); 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; d->phase = 0;
} }