audioconvert: move peaks functions to separate file

Make a peaks finder helper and use it in the peaks resampler.
This commit is contained in:
Wim Taymans 2022-09-27 11:25:02 +02:00
parent 323ec0b51b
commit a579fc49ba
9 changed files with 380 additions and 202 deletions

View file

@ -12,8 +12,8 @@ audioconvert_c = static_library('audioconvert_c',
'biquad.c',
'crossover.c',
'volume-ops-c.c',
'peaks-ops-c.c',
'resample-native-c.c',
'resample-peaks-c.c',
'fmt-ops-c.c' ],
c_args : ['-Ofast', '-ffast-math'],
dependencies : [ spa_dep ],
@ -24,8 +24,8 @@ simd_dependencies += audioconvert_c
if have_sse
audioconvert_sse = static_library('audioconvert_sse',
['resample-native-sse.c',
'resample-peaks-sse.c',
'volume-ops-sse.c',
'peaks-ops-sse.c',
'channelmix-ops-sse.c' ],
c_args : [sse_args, '-Ofast', '-DHAVE_SSE'],
dependencies : [ spa_dep ],
@ -101,6 +101,7 @@ endif
audioconvert_lib = static_library('audioconvert',
['fmt-ops.c',
'channelmix-ops.c',
'peaks-ops.c',
'resample-native.c',
'resample-peaks.c',
'volume-ops.c' ],