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.

internal

A resampler built into MPD. Its quality is very poor, but its CPU usage is low. This is the fallback if MPD was compiled without an external resampler.

libsamplerate

A resampler using 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.

soxr

A resampler using libsoxr, the SoX Resampler library

Name Description
quality The libsoxr quality setting. Valid values are:
  • "very high"

  • "high" (the default)

  • "medium"

  • "low"

  • "quick"

threads The number of libsoxr threads. "0" means "automatic". The default is "1" which disables multi-threading.