aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-21 20:33:13 +0100
committerMax Kellermann <max@duempel.org>2015-01-22 11:37:18 +0100
commit6cd5d7360759fdfb3021195134299a5151551ffb (patch)
treeca3bb91a1e4b616b37917906a2412daa67718e51 /src/pcm
parent80a7e1ea7dae1968b1f7dee739adec91692beba8 (diff)
downloadmpd-6cd5d7360759fdfb3021195134299a5151551ffb.tar.gz
mpd-6cd5d7360759fdfb3021195134299a5151551ffb.tar.xz
mpd-6cd5d7360759fdfb3021195134299a5151551ffb.zip
pcm/SoxrResampler: allow multi-threaded resampling
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/SoxrResampler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/SoxrResampler.cxx b/src/pcm/SoxrResampler.cxx
index df462ed9d..7750afd5c 100644
--- a/src/pcm/SoxrResampler.cxx
+++ b/src/pcm/SoxrResampler.cxx
@@ -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;