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:
Wim Taymans 2020-02-13 16:46:03 +01:00
parent 761119f640
commit 83f2e890ad
2 changed files with 288 additions and 0 deletions

View file

@ -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