mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +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;
|
||||
}
|
||||
|
||||
alloc_taps_mem (resampler, bps, n_taps, oversample + isize - 1);
|
||||
alloc_taps_mem (resampler, bps, n_taps, oversample + isize);
|
||||
|
||||
tmp_taps = resampler->tmp_taps;
|
||||
for (i = 0; i < oversample + isize - 1; i++) {
|
||||
x = 1.0 - n_taps / 2 + i / (gdouble) oversample;
|
||||
for (i = 0; i < oversample + isize; i++) {
|
||||
x = -(n_taps / 2) + i / (gdouble) oversample;
|
||||
|
||||
taps = (gint8 *) resampler->taps + i * resampler->taps_stride;
|
||||
weight = make_taps (resampler, tmp_taps, x, n_taps);
|
||||
|
|
Loading…
Reference in a new issue