re3-nx Linux Audio Fix


Written by

GTA3 build for the Nintendo Switch was recently released but there is an audio issue with the WAV files on some releases, the developers provided a Windows batch script and not a Linux script.

It requires ffpmeg which is typically in your favourite distros package manager.

#!/bin/bash
# www.aboutcher.co.uk

function check_bin() {
  which $1 1>/dev/null 2>&1
  if [[ $? -ne 0 ]]; then
    echo "$1 cannot be found. Please install it or add it to your path. Exiting."
    exit 1
  fi
}

check_bin ffmpeg
check_bin grep

mkdir audio
for file in $(ls | grep wav); do
  ffmpeg -i $file audio/$file
done;

Just copy and paste the code above, save it in the same directory as your GTA audio files and execute it (chmod +x script.sh && ./script.sh)