Pauli Virtanen
f3a9ebd569
audioconvert: resampler: change resample_phase() unit to input samples
...
Report fractional delay in input samples instead of nsec at the nominal
input rate, as that is closer to what the value actually means.
2025-01-19 17:11:13 +02:00
Pauli Virtanen
07f6dde3dd
audioconvert: add function to get phase to resampler API
...
Support getting any fractional phase part of the resampler delay in its
API.
2025-01-17 19:10:43 +02:00
Wim Taymans
05c969381d
audioconvert: implement resample_out_len()
2024-01-16 13:28:37 +01:00
Wim Taymans
b5b01f4dd2
resample-peaks: improve peaks some more
...
Update the i_count in the loop because we use it to check when we have
completed a chunk.
2023-07-05 14:07:30 +02:00
Wim Taymans
48bf039e25
resample-peaks: fix peaks resampler
...
Avoid some segfaults in some cases.
fixes #3320
2023-07-05 13:46:08 +02:00
Barnabás Pőcze
934ab3036e
treewide: use SPDX tags to specify copyright information
...
SPDX tags make the licensing information easy to understand and clear,
and they are machine parseable.
See https://spdx.dev for more information.
2023-02-16 10:54:48 +00:00
Wim Taymans
a579fc49ba
audioconvert: move peaks functions to separate file
...
Make a peaks finder helper and use it in the peaks resampler.
2022-09-27 11:25:02 +02:00
Wim Taymans
419517fd55
audioconvert: build C versions with -Ofast and -ffast-math
...
Move resampler implementations to a -c version.
Compile some of the functions with other flags to make them more
optimized.
2022-07-14 10:07:07 +02:00
Barnabás Pőcze
d2114c3f2e
spa: audioconvert: fix allocation size calculation
...
Currently, the code allocates
sizeof(header) * sizeof(item) * n_items
bytes instead of the more appropriate
sizeof(header) + sizeof(item) * n_items
Fix that by simply changing the first multiplication to addition, and
furthermore, use a flexible array member instead of a zero-sized array.
Found by clang-tidy.
2022-01-19 02:01:07 +01:00
Wim Taymans
d1f9966a77
resample: implement methods we now call
2021-01-08 17:43:13 +01:00
Wim Taymans
0d1cef6b3a
audioconvert: move some things around
...
To make it easier to add other implementations later.
Improve selection of resampler function
2020-04-03 18:03:42 +02:00