Blame doc/samplerate.txt

Packit Service cd2a00
Rate Converter Plugin Using Libsamplerate
Packit Service cd2a00
=========================================
Packit Service cd2a00
Packit Service cd2a00
The plugin in rate subdirectory is an external rate converter using
Packit Service cd2a00
libsamplerate by Erik de Castro Lopo.  You can use this rate converter
Packit Service cd2a00
plugin by defining a rate PCM with "converter" parameter, such as:
Packit Service cd2a00
Packit Service cd2a00
	pcm.my_rate {
Packit Service cd2a00
		type rate
Packit Service cd2a00
		slave.pcm "hw"
Packit Service cd2a00
		converter "samplerate"
Packit Service cd2a00
	}
Packit Service cd2a00
Packit Service cd2a00
The plug plugin has also a similar field, "rate_converter".
Packit Service cd2a00
Packit Service cd2a00
Or, more easily, define a global variable "defaults.pcm.rate_converter",
Packit Service cd2a00
which is used as the default converter type by plug and rate plugins:
Packit Service cd2a00
Packit Service cd2a00
	defaults.pcm.rate_converter "samplerate"
Packit Service cd2a00
Packit Service cd2a00
Write the above in your ~/.asoundrc or /etc/asound.conf.
Packit Service cd2a00
Packit Service cd2a00
The following converter types are available:
Packit Service cd2a00
Packit Service cd2a00
  - samplerate_best	Use SRC_SINC_BEST_QUALITY
Packit Service cd2a00
  - samplerate_medium	Use SRC_SINC_MEDIUM_QUALITY
Packit Service cd2a00
  - samplerate		Use SRC_SINC_FASTEST
Packit Service cd2a00
  - samplerate_order	Use SRC_ZERO_ORDER_HOLD
Packit Service cd2a00
  - samplerate_linear	Use SRC_LINEAR
Packit Service cd2a00