From 1ac61e6fa2115856b4d9fe6e30637c37d9dead7a Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Tue, 22 Jun 2021 20:32:41 +0200 Subject: [PATCH] + basic pulseaudio support --- README.md | 7 ++++++- server.sh | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 68f4b5f..5f4665e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # stream.sh A quick-and-dirty solution for streaming audio over TCP/IP between -Linux computers with ALSA. +Linux computers with ALSA (and pulseaudio). # usage @@ -34,6 +34,11 @@ bitrate: ./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 stream.sh has a built-in benchmarking functionality that tries to diff --git a/server.sh b/server.sh index c8b1e11..2575b8f 100755 --- a/server.sh +++ b/server.sh @@ -8,6 +8,8 @@ if [[ "$1" == '' ]]; then exit 1 fi +rtpdump -F payload 224.0.0.56/5004 | aplay -f cdr & + if [[ "$0" == *"server.sh" ]]; then ncat -k -l -p $1 -c "./server_core.sh" else