Closed Hydro001 closed 6 months ago
This seems to be related on the resolution/precision of setInterval
on Windows, which seems to fluctuate more than non-Windows (e.g Linux distros).
A solution would be make setInterval
to be aware of the time, reducing this imprecision. However Windows isn't recommended for hosting and tends to be really bad at real-time IO (aside from numerous other things it isn't optimized for).
I'll see about implement time aware setInterval
s for /voice
only for Windows, but no promises for that. Be aware that it will be more CPU-hungry.
This issue was addressed by https://github.com/PerformanC/voice/commit/bc88b62d733dc3e6463726254d24d33649a55ed3.
Version
1.0.5
Description
Using this on Windows makes the bot sound lag while there's no issue doing the same thing in djs/voice
Steps to reproduce
Try the code provided below and these packages :
Example code
Using this package :
Using djs/voice :
Confirmations
Code of Conduct