Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
6cd5d736
Commit
6cd5d736
authored
Jan 21, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/SoxrResampler: allow multi-threaded resampling
parent
80a7e1ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
NEWS
NEWS
+1
-0
user.xml
doc/user.xml
+11
-0
SoxrResampler.cxx
src/pcm/SoxrResampler.cxx
+1
-1
No files found.
NEWS
View file @
6cd5d736
...
...
@@ -21,6 +21,7 @@ ver 0.20 (not yet released)
* resampler
- new block "resampler" in configuration file
replacing the old "samplerate_converter" setting
- soxr: allow multi-threaded resampling
* reset song priority on playback
* write database and state file atomically
* remove dependency on GLib
...
...
doc/user.xml
View file @
6cd5d736
...
...
@@ -2392,6 +2392,17 @@ buffer_size: 16384</programlisting>
</itemizedlist>
</entry>
</row>
<row>
<entry>
<varname>
threads
</varname>
</entry>
<entry>
The number of
<application>
libsoxr
</application>
threads. "0" means "automatic". The default is "1"
which disables multi-threading.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
...
...
src/pcm/SoxrResampler.cxx
View file @
6cd5d736
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment