Skip to content

Instantly share code, notes, and snippets.

@DareFox
Last active December 20, 2023 15:59
Show Gist options
  • Save DareFox/e02efb02438e7b7720fc91bcdd2786a8 to your computer and use it in GitHub Desktop.
Save DareFox/e02efb02438e7b7720fc91bcdd2786a8 to your computer and use it in GitHub Desktop.
Script to fix Progressbar95 sounds on Linux

Script to fix sound in Progressbar95 (requires ffmpeg)

By default Progressbar95 has broken sound due to game reading mp3 files as raw format (wav) This script converts all .mp3 files to .wav and renames converted .wav to .mp3

How to use

bash ./fixLinuxSounds.sh <path_to_game>

Example:

bash ./fixLinuxSounds.sh /media/hdd/Gaming/Linux/SteamLibrary/steamapps/common/Progressbar95/
#!/bin/env bash
gameDir=$1
soundFolder="$gameDir/Resources/sound"
for mp3 in $soundFolder/*.mp3
do
echo "Converting $mp3 to .wav"
ffmpeg -loglevel error -i $mp3 $mp3.wav
echo "Deleting $mp3"
rm $mp3
echo "Renaming $(basename $mp3).wav to .mp3 file"
mv $mp3.wav $mp3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment