fix stupid loopback

This commit is contained in:
William Bell
2026-01-02 17:14:45 +00:00
parent 228cf5439b
commit 408f4e1674

View File

@@ -7,6 +7,12 @@ mkdir -p "$STATE"
# Defaults # Defaults
MIC=$(pactl get-default-source) MIC=$(pactl get-default-source)
# Check if soundboard is already started
if [[ -f "$STATE/nullsink.id" || -f "$STATE/remap.id" || -f "$STATE/micloop.id" ]]; then
echo "Soundboard already started"
exit 0
fi
# 1. Create a null sink (soundboard mixer) # 1. Create a null sink (soundboard mixer)
if ! pactl list short sinks | grep -q soundboard_sink; then if ! pactl list short sinks | grep -q soundboard_sink; then
SINK_ID=$(pactl load-module module-null-sink \ SINK_ID=$(pactl load-module module-null-sink \