Blame doc/lavrate.txt

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