mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
audioconvert: fix native variable rate resampler
This commit is contained in:
parent
5ac383e7f7
commit
636c02d38b
3 changed files with 16 additions and 13 deletions
|
|
@ -78,7 +78,7 @@ DEFINE_RESAMPLER(copy,arch) \
|
|||
index += to_copy; \
|
||||
offs += to_copy; \
|
||||
} \
|
||||
*in_len = index - data->index; \
|
||||
*in_len = index; \
|
||||
*out_len = offs; \
|
||||
data->index = index; \
|
||||
}
|
||||
|
|
@ -143,8 +143,8 @@ DEFINE_RESAMPLER(inter,arch) \
|
|||
phase = data->phase; \
|
||||
\
|
||||
for (o = offs; o < olen && index + n_taps <= ilen; o++) { \
|
||||
const float *ip; \
|
||||
float ph, x, *t0, *t1; \
|
||||
const float *ip, *t0, *t1; \
|
||||
float ph, x; \
|
||||
uint32_t offset; \
|
||||
\
|
||||
ip = &s[index]; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue