Cool got it working under ecasound with 8-9 seconds lag. hurrah
Shairport under both arecord and ecasound
sudo perl /usr/bin/shairport/shairport.pl -v -a "Squeezebox Airplay"
--ao_driver alsa --ao_devicename=hw:Loopback,0sudo perl
/usr/bin/shairport/shairport.pl -v -a "Squeezebox Airplay" --ao_driver
alsa --ao_devicename=hw:Loopback,0
ARECORD SETTINGS:
LMS Favourite is wavin:hw:Loopback,1
Code:
--------------------
#
# wavin
#
wavin wav * *
# R
[arecord] -d0 -c2 -f S16_LE -r 44100 -twav -D $FILE$
wavin mp3 * *
# RB:{BITRATE=-B %B}
[arecord] -d0 -c2 -f S16_LE -r 44100 -twav -D $FILE$ | [lame] --silent -r -x
-q $QUALITY$ -b $BITRATE$ - -
wavin flc * *
# R
[arecord] -d0 -c2 -f S16_LE -r 44100 -twav -D $FILE$ | [flac] -cs
--totally-silent --endian=little --channels=2 --sign=signed --bps=16
--sample-rate=44100 --compression-level-0 -
--------------------
ECASOUND SETTINGS:
LMS Favourite is wavin:hw,2,1 note: ecasound didn't like
wavin:hw,*Loopback*,1 or wavin:hw,*loopback*,1
Code:
--------------------
#
#wavin
#
wavin wav * *
# R
[ecasound] -D -dd -q -z:db -b:4096 -f:16,2,44100 -i:alsahw,2,1 -o stdout "$@"
2>/tmp/ecasound.log
wavin mp3 * *
# RB:{BITRATE=-B %B}
[ecasound] -D -dd -q -z:db -b:4096 -f:16,2,44100 -i:alsahw,2,1 -o stdout "$@"
2>/tmp/ecasound.log | [lame] --silent -r -x -q $QUALITY$ -b $BITRATE$ - -
wavin flc * *
# R
[ecasound] -D -dd -q -z:db -b:4096 -f:16,2,44100 -i:alsahw,2,1 -o stdout "$@"
2>/tmp/ecasound.log | [flac] -cs --totally-silent --endian=little
--channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -
--------------------
the ecasound error log can be read with (this was really helpful) sudo
tail -f -n 20 /tmp/ecasound.log
I still have some hiss on the ecasound and arecord streams, all other
pulse and alsa input interfaces are muted and when the music stream is
stopped on shairplay the hiss disappears which leads me to think the
gain on the shairplay stream needs to be attenuated. That said the sound
on the pipe has no hiss at all which suggest my speculation is
incorrect. Now I have all three options working I'll see if I can
improve the latency on the pipe. Thanks both for your time so far.
------------------------------------------------------------------------
atca's Profile: http://forums.slimdevices.com/member.php?userid=56880
View this thread: http://forums.slimdevices.com/showthread.php?t=49584
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins