added back audio remote tool
This commit is contained in:
parent
5eb91c6806
commit
d67d89a6ef
1 changed files with 30 additions and 0 deletions
30
remote-audio
Executable file
30
remote-audio
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env bash
|
||||
#docstring=remote audio through roc-toolkit
|
||||
#!TODO! use list_ips
|
||||
#roc-recv -s rtp+rs8m://0.0.0.0:10001 -r rs8m://0.0.0.0:10002 -o alsa://default
|
||||
#roc-send -s rtp+rs8m://192.168.178.40:10001 -r rs8m://192.168.178.40:10002 -i alsa://default
|
||||
set -E -o pipefail
|
||||
shopt -s failglob
|
||||
export LC_ALL=C.UTF8
|
||||
|
||||
start() {
|
||||
roc-recv -s rtp+rs8m://0.0.0.0:10001 -r rs8m://0.0.0.0:10002 -o alsa://default &
|
||||
roc-send -s rtp+rs8m://192.168.178.40:10001 -r rs8m://192.168.178.40:10002 -i alsa://default &
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall roc-send
|
||||
killall roc-recv
|
||||
}
|
||||
|
||||
stop9() {
|
||||
killall -9 roc-send
|
||||
killall -9 roc-recv
|
||||
}
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
#start()
|
||||
start
|
||||
else
|
||||
$1
|
||||
fi
|
Loading…
Add table
Reference in a new issue