discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
327 stars 110 forks source link

Buffering state is never actually entered #97

Closed amishshah closed 3 years ago

amishshah commented 3 years ago

I assumed that Readable.readable was synonymous with the readable event, which is emitted when there is data to be read from the stream. Instead, Readable.readable actually means that the stream has not been destroyed or emitted 'error' or 'end'.

AudioPlayer should be updated to check for this properly.