sedmelluq / lavaplayer

Audio player library for Discord
Apache License 2.0
966 stars 247 forks source link

Unknown file format / Unsupported bits per sample #719

Open sinkaroid opened 1 year ago

sinkaroid commented 1 year ago

I trying to make my own radio services with lavalink, the thing is all of my .wav files that i want to serving with lavaplayer is throwing:

java.lang.IllegalStateException: Unsupported bits per sample: 24
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Unknown file format.

Whenever its file <100MB it working as expected, but when above than 100MB i got Unsupported bits per sample: 24 here. My question: is there a way to validate the .wav format to prevent unsupported bits?

devoxin commented 1 year ago

This is caused by a file that is encoded as PCM_S24. This repository doesn't have support for that, however you can try either Lavalink-Devs/Lavaplayer, or my Lavaplayer fork.