mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
tools: add generic resampler tool
Add a tool that can convert the sample rate of an input file and write it to an output file. This tool can be used to test the resampler.
This commit is contained in:
parent
761119f640
commit
83f2e890ad
2 changed files with 288 additions and 0 deletions
|
|
@ -129,3 +129,17 @@ foreach a : benchmark_apps
|
|||
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
||||
])
|
||||
endforeach
|
||||
|
||||
if sndfile_dep.found()
|
||||
sparesample_sources = [
|
||||
'spa-resample.c',
|
||||
]
|
||||
executable('spa-resample',
|
||||
sparesample_sources,
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
include_directories : [spa_inc ],
|
||||
link_with : [ simd_dependencies, test_lib, audioconvertlib ],
|
||||
dependencies : [sndfile_dep, mathlib],
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue