Commit graph

97 commits

Author SHA1 Message Date
yuko1225
d7c22e2791 Fix broken IP Discovery in voice connection. (#669)
https://github.com/bwmarrin/discordgo/issues/598
https://github.com/bwmarrin/discordgo/issues/668
2019-07-21 21:08:31 -07:00
Bruce Marriner
e7ec3c1e37 Fix a typo. 2018-08-27 15:37:58 +00:00
Bruce Marriner
10be6053b9 Merge branch 'develop' of https://github.com/bwmarrin/discordgo into develop 2018-08-27 15:36:04 +00:00
Skippy
2cc0417697
Merge pull request #366 from jD91mZM2/1
STOP USING PRINTF PLS
2018-08-22 19:50:27 -05:00
Bruce Marriner
22c5f24532 Fixed a couple of error msgs 2018-08-23 00:33:57 +00:00
Santiago Andaluz
fbfba5b969
Update Disconnect() comment
It looks like dgo has moved away from ChannelVoiceLeave ever since discord allows bot to connect to more than one channel. Confusing comment seeing that it is very hard to find information about the function that it mentions.
2018-07-05 13:46:54 -05:00
vim2meta
86557619ba
Update voice.go 2017-11-19 10:14:45 -05:00
NamedKitten
70c6c583e4 Use v.log rather than log for consistency. (#464)
Change made to keep the use of logging consistent.
2017-10-23 11:20:07 -07:00
LEGOlord208
2f51bf4d58
Merge branch 'develop' into 1 2017-08-29 07:53:58 +02:00
Chris Rhodes
1b5dbef04e Merge commit 'd420e28024ad527390b43aa7f64e029083e11989' into develop 2017-08-19 11:20:04 -07:00
Jonas is my name
3c8a0dd940 Fix receiving voice after client sets extended header bit (#428) 2017-08-18 08:35:27 -07:00
LEGOlord208
2079ab8efb
More printfs 2017-07-23 08:42:47 +02:00
LEGOlord208
b813c5d0ca
Merge branch 'develop' into 1 2017-07-23 08:27:41 +02:00
Anmol Sethi
d420e28024 voice.go: remove runtime.LockOSThread call from opusSender (#404)
runtime.LockOSThread does not do anything for performance and is instead
intended for interfacing with libraries that use thread local data structures.

Closes #402
2017-07-08 08:09:04 -07:00
Ammar Bandukwala
0983790428 Fix goroutine leak in opusReceiver (#393) 2017-06-10 13:39:27 -07:00
jonas747
80a3678069 Fix race-y packet in opusReceiver 2017-03-16 03:46:19 +01:00
jonas747
b07d1c4621 Fix leaking tickers (#314) 2017-01-23 12:13:59 -08:00
jonas747
bdb31f245d Fix all found race conditions, and dont send on nil channel (#307) 2017-01-10 20:01:47 -08:00
Bruce Marriner
cb96c5b0f7 Log voice connect error in the right place. 2016-12-20 12:00:34 -06:00
Bruce Marriner
9e777a083b Linting. 2016-12-11 12:45:34 -06:00
Chris Rhodes
c5a94de19c Silence missing voice op codes. 2016-11-11 08:20:00 -08:00
Jonathan
374c41e753 fix typo 2016-09-20 15:33:08 +02:00
Bruce Marriner
a97d89e1de Fix param to ChannelVoiceJoin 2016-07-11 22:17:56 -05:00
Bruce Marriner
2ebf8bdb10 Removed unneeded code. 2016-07-07 21:07:26 -05:00
Bruce Marriner
bbce2612b0 simi-properly close websockets and simplify voice reconnect 2016-07-06 20:31:47 -05:00
Bruce Marriner
45ffd8c83a Removed extra logging 2016-07-06 12:53:11 -05:00
Bruce Marriner
7393438ea8 Put wait var back in. 2016-07-05 21:42:10 -05:00
Bruce Marriner
956961ac3e Simplify reconnect code. 2016-07-05 21:38:37 -05:00
Bruce Marriner
604872ed4b Fix error msg 2016-07-05 20:52:54 -05:00
Bruce Marriner
5f983250fe Check that the gateway websocket is ready 2016-06-24 19:42:43 -05:00
Bruce Marriner
e252652fe8 Unlock what you Lock, fool. 2016-06-24 13:42:35 -05:00
Bruce Marriner
3329f87b14 Added lots of temp logs into voice close func 2016-06-24 13:11:25 -05:00
Bruce Marriner
e451cb36c3 Clear SessionID when reconnecting voice
Also added some more logging..
2016-06-17 10:24:15 -05:00
Bruce Marriner
e76dafab78 Do spam unready session error on voice reconnec 2016-06-16 14:53:05 -05:00
Bruce Marriner
c8d01b7f60 Reconnect now does a full disconnect and reconnect
This should hopefully provide a more stable voice connection at the cost
of making reconnects slightly more expensive for both the client and
Discord. This could be changed later once the Discord voice
documentation more clearly defines reconnect rules. Also, a bit of cleanup :)
2016-06-14 10:57:43 -05:00
Bruce Marriner
71c172a948 Clean up. 2016-06-04 20:18:56 -05:00
Bruce Marriner
7039cc47dc Reconnect to voice gateway instead of.. 2016-05-28 14:58:44 -05:00
Bruce Marriner
32aa5718d1 Fix loop in voice reconnect 2016-05-28 10:50:18 -05:00
Bruce Marriner
754d64d339 Initial code to support voice reconnecting
Also includes some logging improvements and a small fix to track
speaking state and to send speaking packet if needed before sending
opus packets.
2016-05-26 19:35:17 -05:00
Harmon758
2175a62cad Update deaf and mute as well 2016-05-25 10:41:18 -05:00
Harmon758
78113398e5 Update ChannelID in ChangeChannel 2016-05-25 10:04:38 -05:00
Bruce Marriner
aede29500f Added entire voice struct for debugging 2016-05-03 09:35:59 -05:00
Bruce Marriner
cb9e30670f no concurrent writes to voice ws, log cleanup 2016-05-01 19:54:28 -05:00
Bruce Marriner
dd69a7e27f Added logging statements 2016-04-28 09:27:57 -05:00
Bruce Marriner
fc7ce3db94 Initial add of new logging system
This adds a LogLevel setting for both Websocket and VoiceConnections
that can be configured to set the specific log level desired. This
also adds a new logging function that adds additional helpful
information when printing out log messages.
2016-04-26 21:17:51 -05:00
Bruce Marriner
4cac19c3f9 Do not start udp listener if deaf.
If you call VoiceChannelJoin and set deaf to true
then the library will not start a udp listener
2016-04-25 22:00:30 -05:00
Bruce Marriner
6c0b89965c slightly better handling of voice disconnects
We now check if  the voice connection disconencted
due to a call to Voice.Close() and if so it does not
emit an error message.
2016-04-25 21:33:22 -05:00
Bruce Marriner
1a672823a2 Lint and Cleanup 2016-04-11 18:54:19 -05:00
jonas747
d1f25d8561 Changed fmt.Print to log.Print 2016-03-21 17:13:39 +01:00
Chris Rhodes
584b06aae5 Support VoiceSpeakingUpdates on VoiceConnection. 2016-03-18 10:50:25 -07:00