Ben Edwards, Apr 1 2016:
...
I need to use a slave.Yes, but I haven't seen it like that, if it works though...
Don't put the slashes around your sample rate. I'd normally put all the sl3 code inside your complex_converter, where you said:
Is this correct?
pcm_slave.sl3 {
pcm "hw:1,0"
format S16_LE
channels 2
rate /44100 /
}
pcm.complex_convert {
type plug
slave sl3
}
slave sl3
I would have written:
slave {
pcm "hw:1,0,0"
...
}
pcm_slave.sl3 {but got
pcm "hw:1,0"
channels 2
rate 44100
}
pcm.complex_convert {
type plug
format S16_LE
slave sl3
}
pi@cuberadio:~ $ arecord -t wav -r 44100 -c 2 -f S16_LE -D complex_convert mon.wav;(.
ALSA lib pcm_plug.c:1261:(_snd_pcm_plug_open) Unknown field format
arecord: main:722: audio open error: Invalid argument
S16_LE = signed 16bit Little Endian, which is what you want. Take a look at the manpage for arecord:
man arecord
then search for s16_le:
/s16_le
you will come to a full list of accepted bit depth/sample formats of ALSA.
If you have to work with the asoundrc, JACK will be easier on every modern system, that I know off. It will take care of different bit depth automatically. Maybe give it a try at some point. If you like graphical user interfaces qjackctl is a good companion to look at connections and/or make them yourself.
Not against using jack but only if I have to. It seems more complex and I am very new to al this.
...
Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter: http://twitter.com/ffanci_silvain
* GitHub: https://github.com/fsilvain
If you are a freelancer FreeAgent is a great system to
do your accounts,
if you use http://www.freeagent.com/?referrer=42j4d743
(referral code is 42j4d743) you get 10% off each month.