mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
audio-resampler: fix phase
This commit is contained in:
parent
9182ea17b5
commit
00e5a8bab8
1 changed files with 3 additions and 3 deletions
|
@ -1347,11 +1347,11 @@ resampler_calculate_taps (GstAudioResampler * resampler)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
alloc_taps_mem (resampler, bps, n_taps, oversample + isize - 1);
|
alloc_taps_mem (resampler, bps, n_taps, oversample + isize);
|
||||||
|
|
||||||
tmp_taps = resampler->tmp_taps;
|
tmp_taps = resampler->tmp_taps;
|
||||||
for (i = 0; i < oversample + isize - 1; i++) {
|
for (i = 0; i < oversample + isize; i++) {
|
||||||
x = 1.0 - n_taps / 2 + i / (gdouble) oversample;
|
x = -(n_taps / 2) + i / (gdouble) oversample;
|
||||||
|
|
||||||
taps = (gint8 *) resampler->taps + i * resampler->taps_stride;
|
taps = (gint8 *) resampler->taps + i * resampler->taps_stride;
|
||||||
weight = make_taps (resampler, tmp_taps, x, n_taps);
|
weight = make_taps (resampler, tmp_taps, x, n_taps);
|
||||||
|
|
Loading…
Reference in a new issue