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:
parent
480fa533a2
commit
910eaa5954
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user