An example to test latency using netcat - which is simply piping a Flac
stream across a TCP connection. Anything else such as Pulseaudio will
build on this basic connection.
1. The receiver system - set up first
This will steup Netcat to wait for a connection on port 2999 , when
connection is made the Flac stream is sent to flac to decode which then
passes to aplay to play on computer speaker.
Code:
--------------------
nc -l 2999 | flac -d -cs - - | aplay -
--------------------
2. On the source system
Code:
--------------------
arecord -d0 -c2 -f S16_LE -r 44100 -twav -D sysdefault | flac -cs
--totally-silent --compression-level-0 - | nc 192.168.1.54 2999
--------------------
This captures audio from Alsa source sysdefault into a CD quality stream
- it is sent to Flac to convert to Flac and then onto a netcat which
make a connection to host 192.168.1.54 on port 2999 and then stream the
Flac.
To determine latency - compare delay between audio out from source and
audio out whenplaying on receiver.
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=49584
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins