1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-16 20:15:40 -05:00

speaking debug messages

This commit is contained in:
Tyler Stiene 2021-04-08 00:49:49 -04:00
parent 480fa533a2
commit 910eaa5954

View File

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