Skip to content

Commit

Permalink
Set all audio parameters
Browse files Browse the repository at this point in the history
Default arguments differ between PulseAudio and PipeWire.
  • Loading branch information
gdzx committed Mar 2, 2022
1 parent 4f12362 commit cb16e63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions audiosource
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb16e63

Please sign in to comment.