Open jD91mZM2 opened 7 years ago
Another thing, printing an error there is not the best of ideas. Because everytime PlayAudioFile
closes, it throws an error because SendPCM
continues to live on.
I think there's a lot of room for improvement here :)
When you
return
at https://github.com/bwmarrin/dgvoice/blob/master/dgvoice.go#L116, which means https://github.com/bwmarrin/dgvoice/blob/master/dgvoice.go#L195 waits forever, and never returns. I'd suggest closing the channel or something