dgvoice
dgvoice copied to clipboard
PlayAudioFile never returns when not ready
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
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 :)