Debian Codegraph @

doc/lavrate.txt

raw
1 Rate Converter Plugin Using libavresample
2 =========================================0
3
4 The plugin in rate-lavr subdirectory is an external rate converter using
5 libswresample library. You can use this rate converter plugin by defining a
6 rate PCM with "converter" parameter, such as:
7
8 pcm.my_rate {
9 type rate
10 slave.pcm "hw"
11 converter "lavrate"
12 }
13
14 The plug plugin has also a similar field, "rate_converter".
15
16 Or, more easily, define a global variable "defaults.pcm.rate_converter",
17 which is used as the default converter type by plug and rate plugins:
18
19 defaults.pcm.rate_converter "lavrate"
20
21 Write the above in your ~/.asoundrc or /etc/asound.conf.
22
23 The following converter types are available:
24
25 - lavcrate_higher Use length=64
26 - lavcrate_high Use length=32
27 - lavcrate Use length=16
28 - lavcrate_fast Use length=8
29 - lavcrate_faster Use length=4
30
31 Linear interpolation and cutoff values are automatically used depending on
32 the supplied parameters and whether the plugin is used to upsample or
33 downsample.