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