bwmarrin / dgvoice

Discordgo Voice - A sub project to work on voice implementation for Discordgo
BSD 3-Clause "New" or "Revised" License
102 stars 39 forks source link

KillPlayer panics when nothing is playing #6

Open jD91mZM2 opened 7 years ago

jD91mZM2 commented 7 years ago

Since the value is nil, it crashes when nothing is playing. I'd suggest fixing this, as it would be more convenient.

bwmarrin commented 7 years ago

Hmn, this whole repo is in pretty bad shape. I wrote it a long long time ago. I think it's due for a total re-write, honestly.

jD91mZM2 commented 7 years ago

Tell me if I can help! Never got a perfect understanding of audio stuffs, but your code tought be a lot about DCA files :smile: