Blame doc/lavrate.txt

Packit 675970
Rate Converter Plugin Using libavresample
Packit 675970
=========================================0
Packit 675970
Packit 675970
The plugin in rate-lavr subdirectory is an external rate converter using
Packit 675970
libavresample library. You can use this rate converter plugin by defining a
Packit 675970
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 "lavrate"
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 "lavcrate"
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
  - lavcrate_higher		Use	length=64
Packit 675970
  - lavcrate_high  		Use length=32
Packit 675970
  - lavcrate       		Use length=16
Packit 675970
  - lavcrate_fast  		Use length=8
Packit 675970
  - lavcrate_faster		Use length=4
Packit 675970
Packit 675970
Linear interpolation and cutoff values are automatically used depending on
Packit 675970
the supplied parameters and whether the plugin is used to upsample or
Packit 675970
downsample.