+ basic pulseaudio support

master v1.1
ptrcnull 2021-06-22 20:32:41 +02:00
parent 5311099dbd
commit 1ac61e6fa2
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# stream.sh # stream.sh
A quick-and-dirty solution for streaming audio over TCP/IP between A quick-and-dirty solution for streaming audio over TCP/IP between
Linux computers with ALSA. Linux computers with ALSA (and pulseaudio).
# usage # usage
@ -34,6 +34,11 @@ bitrate:
./stream.sh client 10.21.37.1 1337 libopus 64 ./stream.sh client 10.21.37.1 1337 libopus 64
``` ```
If you're insane enough to use pulseaudio on a daily basis,
you can use `paprefs` to enable RTP Multicast (don't forget
to check the "fixed port" checkbox) - it should work out of
the box.
# debugging # debugging
stream.sh has a built-in benchmarking functionality that tries to stream.sh has a built-in benchmarking functionality that tries to

View File

@ -8,6 +8,8 @@ if [[ "$1" == '' ]]; then
exit 1 exit 1
fi fi
rtpdump -F payload 224.0.0.56/5004 | aplay -f cdr &
if [[ "$0" == *"server.sh" ]]; then if [[ "$0" == *"server.sh" ]]; then
ncat -k -l -p $1 -c "./server_core.sh" ncat -k -l -p $1 -c "./server_core.sh"
else else