From 0d3b26b3aaee6646ce5e825feca43299365797ec Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2015 20:42:41 +0100 Subject: Config: add section "resampler" --- doc/mpdconf.example | 7 -- doc/user.xml | 344 ++++++++++++++++++++++++++++++---------------------- 2 files changed, 201 insertions(+), 150 deletions(-) (limited to 'doc') diff --git a/doc/mpdconf.example b/doc/mpdconf.example index 7a2db5d16..73a71f1f4 100644 --- a/doc/mpdconf.example +++ b/doc/mpdconf.example @@ -325,13 +325,6 @@ input { # mixer_type "none" # optional #} # -# If MPD has been compiled with libsamplerate support, this setting specifies -# the sample rate converter to use. Possible values can be found in the -# mpd.conf man page or the libsamplerate documentation. By default, this is -# setting is disabled. -# -#samplerate_converter "Fastest Sinc Interpolator" -# ############################################################################### diff --git a/doc/user.xml b/doc/user.xml index 914a89620..310b50d53 100644 --- a/doc/user.xml +++ b/doc/user.xml @@ -771,150 +771,9 @@ systemctl start mpd.socket Check the resampler plugin - reference for a list of resamplers. + reference for a list of resamplers and how to + configure them. - - - The setting samplerate_converter controls - how MPD shall resample music. - Possible values: - - - - - - - - Value - - - Description - - - - - - - "internal" - - - The internal resampler. Low CPU usage, but very - poor quality. - - - - - - "soxr very high" - - - Use libsoxr with "Very - High Quality" setting. - - - - - - "soxr high" or - "soxr" - - - Use libsoxr with "High - Quality" setting. - - - - - - "soxr medium" - - - Use libsoxr with "Medium - Quality" setting. - - - - - - "soxr low" - - - Use libsoxr with "Low - Quality" setting. - - - - - - "soxr quick" - - - Use libsoxr with "Quick" - setting. - - - - - - "Best Sinc Interpolator" or - "0" - - - libsamplerate: Band - limited sinc interpolation, best quality, 97dB SNR, - 96% BW. - - - - - - "Medium Sinc Interpolator" or - "1" - - - libsamplerate: Band - limited sinc interpolation, medium quality, 97dB - SNR, 90% BW. - - - - - - "Fastest Sinc Interpolator" or - "2" - - - libsamplerate: Band - limited sinc interpolation, fastest, 97dB SNR, 80% - BW. - - - - - - "ZOH Sinc Interpolator" or - "3" - - - libsamplerate: Zero order - hold interpolator, very fast, very poor quality with - audible distortions. - - - - - - "Linear Interpolator" or - "4" - - - libsamplerate: Linear - interpolator, very fast, poor quality. - - - - - @@ -2308,6 +2167,46 @@ buffer_size: 16384
Resampler plugins + + The resampler can be configured in a block named + resampler, for example: + + + resampler { + plugin "soxr" + quality "very high" +} + + + The following table lists the resampler + options valid for all plugins: + + + + + + + + Name + + + Description + + + + + + + plugin + + + The name of the plugin. + + + + + +
<varname>internal</varname> @@ -2327,6 +2226,107 @@ buffer_size: 16384 url="http://www.mega-nerd.com/SRC/">libsamplerate a.k.a. Secret Rabbit Code (SRC). + + + + + + + Name + + + Description + + + + + + + type + + + The interpolator type. See below for a list of + known types. + + + + + + + + The following converter types are provided by + libsamplerate: + + + + + + + + Type + + + Description + + + + + + + "Best Sinc Interpolator" or + "0" + + + Band limited sinc interpolation, best quality, 97dB + SNR, 96% BW. + + + + + + "Medium Sinc Interpolator" or + "1" + + + Band limited sinc interpolation, medium quality, + 97dB SNR, 90% BW. + + + + + + "Fastest Sinc Interpolator" or + "2" + + + Band limited sinc interpolation, fastest, 97dB SNR, + 80% BW. + + + + + + "ZOH Sinc Interpolator" or + "3" + + + Zero order hold interpolator, very fast, very poor + quality with audible distortions. + + + + + + "Linear Interpolator" or + "4" + + + Linear interpolator, very fast, poor quality. + + + + +
@@ -2337,6 +2337,64 @@ buffer_size: 16384 url="http://sourceforge.net/projects/soxr/">libsoxr, the SoX Resampler library + + + + + + + Name + + + Description + + + + + + + quality + + + The libsoxr quality + setting. Valid values are: + + + + + "very high" + + + + + + "high" (the default) + + + + + + "medium" + + + + + + "low" + + + + + + "quick" + + + + + + + +
-- cgit v1.2.3