aboutsummaryrefslogtreecommitdiff
path: root/l2w_snd/winsnd
diff options
context:
space:
mode:
authorBrian Woods2023-02-06 19:50:14 -0500
committerBrian Woods2023-02-06 19:50:14 -0500
commitd332a99154945cfebadbf01b56f6033467e1c5ef (patch)
tree9c867d2e215e5b793d374959da8d694aa09ed80f /l2w_snd/winsnd
init push
Added: firejail - just scripts for firejail options l2w_snd - piping sound from linux to windows over the network misc_scripts - misc scripts.... proton_sieve - proton sieve file for mainbox sorting sys_ctrl - system control scripts
Diffstat (limited to 'l2w_snd/winsnd')
-rwxr-xr-xl2w_snd/winsnd10
1 files changed, 10 insertions, 0 deletions
diff --git a/l2w_snd/winsnd b/l2w_snd/winsnd
new file mode 100755
index 0000000..36493ef
--- /dev/null
+++ b/l2w_snd/winsnd
@@ -0,0 +1,10 @@
+#!/bin/bash
+# SPDX-FileCopyrightText: 2023 Brian Woods
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+WIN_IP="10.0.8.60"
+WIN_PORT="18181"
+AUDIO_DEV="alsa_output.usb-Lenovo_ThinkPad_USB-C_Dock_Gen2_USB_Audio_000000000000-00.analog-stereo.monitor"
+
+# works, but mp3
+ffmpeg -f pulse -i "$AUDIO_DEV" -ac 2 -acodec libmp3lame -ar 44100 -ab 256000 -f rtp rtp://$WIN_IP:$WIN_PORT