Many files from bandcamp has the "unsupported file type error" issue with old Pioneer XDJ/CDJ decks. This is because of WAV_EXT flag into these files.
For solving this we need to rewrite 20th and 21th bytes of these wav-files to 01 00
and the Pioneer old decks will play the files.
⚠️ Make a backup of your files before running the tool!
You can buld this project with this repo or use binary from latest release (amd64 and arm64 version).
Download and allow the app
Open terminal and download the app:
curl -L https://github.com/7olstoy/pioneer-wav-fixer/releases/latest/download/pioneer_wav_fixer_$(uname -m) --output pioneer_wav_fixer
Add permission for execute:
chmod +x pioneer_wav_fixer
Run it:
./pioneer_wav_fixer help
Close the warning and open settings on your Mac, choose Apple menu > System Settings, then click Privacy & Security in the sidebar. After you need to approve the running on this app pioneer_wav_fixer:
and run it again:
./pioneer_wav_fixer help
If you see all options - you can continue.
Run the app with your files directory:
./pioneer_wav_fixer -folder /Volumes/USB_FLASH_NAME/Contents
and you will see all broken files. For fix it:
./pioneer_wav_fixer -folder /Volumes/USB_FLASH_NAME/Contents -overwrite
Options
-folder string
Path to the folder containing WAV files (default ".")
-list
Show all files and 20-21 bytes value
-overwrite
Overwrite files with non-0100 20-21 bytes value, i.e. fix the main issue