Blame doc/samplerate.txt

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