Navoei / CustomDiscs

A Paper plugin to add custom music discs using the Simple Voice Chat API.
MIT License
54 stars 13 forks source link

An error has occured while trying to play this disc #46

Open FaceCutter opened 11 months ago

FaceCutter commented 11 months ago

Can't play any music disk on server. Is this the format of music issue?

Here's the log from server:

[07:24:26] [AudioPlayerThread/WARN]: javax.sound.sampled.UnsupportedAudioFileException: not a MPEG stream:Cannot invoke "javazoom.jl.decoder.Header.version()" because "m_header" is null [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioFileFormat(MpegAudioFileReader.java:449) [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:387) [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:329) [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioInputStream(MpegAudioFileReader.java:583) [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioInputStream(MpegAudioFileReader.java:493) [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//me.Navoei.customdiscsplugin.PlayerManager.convertFormat(PlayerManager.java:132) [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//me.Navoei.customdiscsplugin.PlayerManager.readSoundFile(PlayerManager.java:121) [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//me.Navoei.customdiscsplugin.PlayerManager.playChannel(PlayerManager.java:105) [07:24:26] [AudioPlayerThread/WARN]: at custom-discs-2.4.1.jar//me.Navoei.customdiscsplugin.PlayerManager.lambda$playLocationalAudio$4(PlayerManager.java:73) [07:24:26] [AudioPlayerThread/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) [07:24:26] [AudioPlayerThread/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) [07:24:26] [AudioPlayerThread/WARN]: at java.base/java.lang.Thread.run(Thread.java:1623) [07:24:26] [AudioPlayerThread/INFO]: Error Occurred At: Location{world=CraftWorld{name=world},x=215.0,y=73.0,z=-96.0,pitch=0.0,yaw=0.0}

Navoei commented 10 months ago

It may be because of the file format/extension.

FaceCutter commented 10 months ago

Tried other format's, still not working(