From cb16e63a2130b066123a048fe6d545b083fbd6a9 Mon Sep 17 00:00:00 2001 From: gdzx Date: Wed, 2 Mar 2022 18:32:42 +0100 Subject: [PATCH] Set all audio parameters Default arguments differ between PulseAudio and PipeWire. --- audiosource | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/audiosource b/audiosource index 9ecb37c..bcba20c 100755 --- a/audiosource +++ b/audiosource @@ -74,8 +74,7 @@ run() { pactl unload-module "$id" done - # default: 2ch s16 44100Hz /tmp/music.input - pactl load-module module-pipe-source source_name="$AUDIOSOURCE_NAME" channels=1 file="$AUDIOSOURCE_PIPE" + pactl load-module module-pipe-source source_name="$AUDIOSOURCE_NAME" channels=1 format=s16 rate=44100 file="$AUDIOSOURCE_PIPE" opts= if [ $# -ge 1 ]; then