[alsa-devel] How to apply rate conversion in asound.conf
Hi experts,
I am currently using the following asound.conf, which is pretty much copy-paste from the link below.
asound.conf ------------------------------------- pcm.!default { type plug slave.pcm multi }
pcm.multi { type multi; slaves.a.pcm "hw:0,1"; slaves.a.channels 2; slaves.b.pcm "hw:1,1"; slaves.b.channels 2;
bindings.0.slave a; bindings.0.channel 0; bindings.1.slave a; bindings.1.channel 1; bindings.2.slave b; bindings.2.channel 0; bindings.3.slave b; bindings.3.channel 1; } -------------------------------------
http://www.alsa-project.org/main/index.php/Asoundrc#Virtual_multi_channel_de... -------------------------------------
My purpose is to apply rate conversion to the "hw:1,1" and have 44100 rate out. There is a sample conversion like:
pcm.rate_convert { type rate slave sl2 }
but how can I attach this rate_convert code to the multi code?
Thanks.
Dolevo Jay wrote:
pcm.!default { type plug slave.pcm multi }
pcm.multi { slaves.a.pcm "hw:0,1"; slaves.b.pcm "hw:1,1"; ...
My purpose is to apply rate conversion to the "hw:1,1" and have 44100 rate out.
All slaves must use the same rate.
The easiest way is apply this to the plug plugin:
pcm.!default { type plug slave { pcm multi rate 44100 } }
Regards, Clemens
participants (2)
-
Clemens Ladisch
-
Dolevo Jay