sedmelluq / lavaplayer

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

No Sound Problem #186

Closed ghost closed 4 years ago

ghost commented 5 years ago

Hi i wanted to make a jda music bot but i tried many tutorials etc. bot giving no sound and any exception giving. I am using 1.3.17 version and tried to JDA Native Sound lib but anything changed. How i can fix it this problem ?

nateradev3 commented 5 years ago

I am having a similar issue. I noticed when I debug the code I can make it start working, but it's almost as if the thread reading the audio stream is ahead of the buffer. If I debug line 336 in MatroskaStreamingFile for a bit. Then allow the code to continue executing it begins working until the playlist runs out. I am trying to find the source of the issue. I am still unsure what other thread is running when the main audio loop is running. I may need to do a thread dump and go from there. It's likely that it's some sort of race condition, but I am unsure why it does not seem to be affecting most people.

nateradev3 commented 5 years ago

To give an update. It turned out my issue was not with the audio player, but with the jda library.
https://github.com/DV8FromTheWorld/JDA/issues/717