1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-12-30 09:55: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
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
}