pcm/SoxrResampler: allow multi-threaded resampling

This commit is contained in:
Max Kellermann
2015-01-21 20:33:13 +01:00
parent 80a7e1ea7d
commit 6cd5d73607
3 changed files with 13 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ pcm_resample_soxr_global_init(const ConfigBlock &block, Error &error)
"soxr converter '%s'",
soxr_quality_name(recipe));
const unsigned n_threads = 1;
const unsigned n_threads = block.GetBlockValue("threads", 1);
soxr_runtime = soxr_runtime_spec(n_threads);
return true;