speaking debug messages

This commit is contained in:
Tyler Stiene 2021-04-08 00:49:49 -04:00
parent 480fa533a2
commit 910eaa5954
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ func (dd *DiscordDuplex) discordSendPCM(ctx context.Context, wg *sync.WaitGroup,
<-ticker.C
if len(pcm) > 1 {
if !streaming {
log.Panicln("Debug: Discord start speaking")
dd.Bridge.DiscordVoice.Speaking(true)
streaming = true
}
@ -107,6 +108,7 @@ func (dd *DiscordDuplex) discordSendPCM(ctx context.Context, wg *sync.WaitGroup,
} else {
if streaming {
log.Panicln("Debug: Discord stop speaking")
dd.Bridge.DiscordVoice.Speaking(false)
streaming = false
}