Skip to content

Commit

Permalink
Fix Liquidsoap 2.2.4 install (#31)
Browse files Browse the repository at this point in the history
* Set hard sample rate
* Fix install links
  • Loading branch information
rmens committed Feb 19, 2024
1 parent 72a31d7 commit c7d46bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fi

# Set package URLs
BASE_URL="https://github.com/savonet/liquidsoap/releases/download/v2.2.4/liquidsoap_2.2.4"
PACKAGE_URL="${BASE_URL}-${OS_ID}-${OS_VERSION}-1_${OS_ARCH}.deb"
PACKAGE_URL="${BASE_URL}-${OS_ID}-${OS_VERSION}-2_${OS_ARCH}.deb"

# User input for script execution
ask_user "DO_UPDATES" "y" "Do you want to perform all OS updates? (y/n)" "y/n"
Expand Down Expand Up @@ -91,7 +91,7 @@ wget https://raw.githubusercontent.com/oszuidwest/liquidsoap-ubuntu/main/radio.l

# Comment out the StereoTool implementation if not enabled
if [ "$USE_ST" == "y" ]; then
sed -i '/# StereoTool implementation/,/output.dummy(radioproc)/ s/^/#/' "/etc/liquidsoap/radio.liq"
sed -i '/# StereoTool implementation/,/output.dummy(radioproc)/ s/^#//' "/etc/liquidsoap/radio.liq"
fi

# Install and set up service
Expand Down
6 changes: 5 additions & 1 deletion radio.liq
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Log (should not be changed)
settings.log.file.path := "/var/log/liquidsoap/<script>.log"

# General configuration (do change this)
# Audio defaults
settings.frame.audio.channels := 2
settings.frame.audio.samplerate := 48000

# Streaming configuration (do change this)
icecastserver = "icecast.example.org"
icecastport = 8000
icecastpassword = "hackme"
Expand Down

0 comments on commit c7d46bc

Please sign in to comment.