jagrosh / MusicBot

🎶 A Discord music bot that's easy to set up and run yourself!
https://jmusicbot.com
Apache License 2.0
5.36k stars 2.57k forks source link

[Bug Report] WAV audio with 24-bit sample size fails to play #896

Closed Kidyeon closed 3 months ago

Kidyeon commented 3 years ago

Bug Description

When attempting to play a file that is 24-bits per sample, the player spits out an error, and in the console it references it being a lavaplayer issue.

Steps to Reproduce

  1. Create a playlist with local 24-bit files.
  2. Attempt to play them.
  3. Bot spits out error: image

Expected Result

I simply expected the music to play alongside the other songs in my playlist. I didn't expect that having a higher-quality file would be an issue.

Debug Output

System Properties:
  java.version = 17
  java.vm.name = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.version = 17
  java.runtime.name = Java(TM) SE Runtime Environment
  java.runtime.version = 17+35-LTS-2724
  java.specification.version = 17
  os.arch = amd64
  os.name = Windows 10

JMusicBot Information:
  Version = 0.3.5
  Owner = 97392010037563392
  Prefix = ~
  AltPrefix = null
  MaxSeconds = 7200
  NPImages = false
  SongInStatus = false
  StayInChannel = false
  UseEval = false
  UpdateAlerts = true

Dependency Information:
  JDA Version = 4.3.0_312
  JDA-Utilities Version = 3.0.5
  Lavaplayer Version = 1.3.78

Runtime Information:
  Total Memory = 56
  Used Memory = 18

Discord Information:
  ID = 887759291006717972
  Guilds = 1
  Users = 5

Additional Info

No response

Checklist

MichailiK commented 3 years ago

Whoops, changed the title about the same time you did. Race condition in real life!

Kidyeon commented 3 years ago

Hahaha, thanks for being on top of the title then!

Sanduhr32 commented 3 years ago

Donking Lavaplayer

varneyc commented 2 years ago

Any resolution found for this? Having same issue with latest version of the bot.

MichailiK commented 5 months ago

A fix has been pushed by lavaplayer (the library we use for playing back audio.) We'll hopefully ship the fix in the next JMusicBot update.