bug: VoiceClient.is_playing()
returns True
even when the bot doesn't reproduce audio
#882
Open
3 tasks done
Labels
t: unconfirmed bug
Type: bug - needs testing on if this is an issue
Summary
When forcily moving the bot into another
VoiceChannel
during an audio reproductionVoiceClient.is_playing()
returnsTrue
even if the bot is not reproducing any sound. I haven't still checked if this issue affect other classes too but there could be other bugs. I've also noted a huge retard while the audio reproduction start, other fork of d.py (like disnake) doesn't seem to have this retard (its length is very variable)Reproduction Steps
VoiceChannel
FFmpegPCMAudio
audio sourceVoiceChannel
Minimal Reproducible Code
Expected Results
VoiceClient.is_playing()
should returnFalse
, i think that's a problem with the audio Thread for the value ofVoiceClient.is_playing()
(relying only on the Thread to know if the audio is playing doesn't take in account possible external interruptions, i mean from discord client side, moving the bot in another VoiceChannel doesn't stop the Thread from playing so that's the problem probaly) and maybe there's a problem with package sending, while the bot change VoiceChannel after some few second it should continue to play the Audio (right? or is this a discord api limitation?)Actual Results
VoiceClient.is_playing()
returnTrue
no matter what happens on client sideIntents
Irrelevants
System Information
nextcord v2.2.0
other information are irrelevants
Checklist
Additional Context
VoiceClient.is_playing()
continue to beTrue
even when the audio stops DisnakeDev/disnake#845The text was updated successfully, but these errors were encountered: