Amish Shah
dfb1a16e9e
One-line an if statement
2017-02-25 23:26:40 +00:00
Programmix
275c9953a0
Fixes disconnecting VoiceConnections before connected ( #1227 )
2017-02-25 23:17:39 +00:00
Schuyler Cebulskie
f3a7f59824
Several improvements
...
- Rename Guild#updateChannelPositions -> setChannelPositions
- Allow Guild#setChannelPositions to take ChannelResolvables
- Prioritise ClientDataResolver#resolveChannel's string case
- Minor cleanup
2017-02-25 15:29:32 -05:00
Amish Shah
18bcd2f7e2
Add AudioPlayer.currentDispatcher
2017-02-25 11:12:17 +00:00
Programmix
76637ed10d
Fix VoiceDispatcher docs ( #1214 )
2017-02-23 21:42:41 -05:00
Programmix
bf25caf3d3
Updated VoiceConnection to use new Util class ( #1210 )
...
pls @Gawdl3y pls
2017-02-22 22:10:26 +00:00
Amish Shah
b55e6927e9
merge fix
2017-02-22 20:39:21 +00:00
Amish Shah
8a2ec437e5
Merge branch 'master' into indev-prism
2017-02-22 20:37:59 +00:00
Programmix
7fd94c29d8
VoiceConnection rework ( #1183 )
...
* VoiceConnection rework
- improves codebase
- removes concept of pending connections
- attempts to fix memory leaks by removing EventEmitter listeners
- makes voice connections keep track of its own channel when it is moved by another user
- allows voice connections to reconnect when Discord falls back to another voice server or a region change occurs
- adds events for some of the aforementioned events
* Removed unused code
* More clean up / bugfixes
* Added typedefs to Status and VoiceStatus constants
2017-02-22 20:13:52 +00:00
Programmix
eb069d0249
Added volumeChange event to VoiceInterface ( #1207 )
...
VoiceBroadcast relies on this event to initialize a new Opus engine
2017-02-22 20:10:19 +00:00
Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05:00
Schuyler Cebulskie
d6f17a9319
Merge branch 'master' into indev-prism
2017-02-06 01:54:31 -05:00
Jacob
49944747ae
Sodium ( #1172 )
...
* Use Native libsodium when available
* add newline
* fix typo of exports
* add to webpack ignore
* Update Secretbox.js
2017-02-06 01:24:54 -05:00
Gus Caplan
59ff1d99ba
fix types for snowflakes ( #1156 )
...
* fix types for snowflakes
* Update TextBasedChannel.js
2017-02-03 21:37:58 -05:00
Programmix
78dafb9480
Properly check whether an Opus engine exists ( #1150 )
...
* Properly check whether an Opus engine exists
I think I'm retarded
* Fix eslint error
* Update OpusEngineList.js
2017-01-30 16:38:47 -05:00
Programmix
7ed58f5f7f
Added Opus stream support, added volume interface ( #1102 )
...
* Added opus stream support, added volume interface
* Remove setImmediate
* Fix weird syntax error
* Most useless commit ever
You're welcome, @PgBiel
* Fix potential memory leak with OpusScript
Emscripten has the tendency to not free resources even when the Opus engine instance has been garbage collected. Thanks to @abalabahaha for pointing this out.
* Typo
* VoiceReceiver.destroy: destroy opus encoder
2017-01-29 19:07:33 +00:00
Fiddlekins
6fae17912e
Added try catch so that decode errors aren't fatal ( #1146 )
...
* Added try catch so that decode errors aren't fatal
* Tweaked the usage of the warn event and updated jsdocs
* Moved method into class for webpack scoping reasons
2017-01-29 18:59:00 +00:00
Programmix
9a6cb6477d
VoiceReceiver: multiple streams fix ( #1132 )
...
* VoiceReceiver: multiple streams fix
silly hydar... you can't have one Opus engine instance for every stream
* Better creation of opus engine
2017-01-26 21:23:00 +00:00
Amish Shah
ba465bc680
Merge branch 'master' into indev-prism
2017-01-15 14:20:32 +00:00
Programmix
d10ca8e7ba
Add VoiceChannel#full and improve joinable/join permission checks ( #1100 )
...
* Improve voice channel join permission checks
* Update ClientVoiceManager.js
2017-01-14 23:32:17 -05:00
Amish Shah
391b618b3f
Merge branch 'indev-prism' of https://github.com/hydrabolt/discord.js into indev-prism
2017-01-08 14:12:36 +00:00
Programmix
adbd95adf0
Fix VoiceBroadcaster per-dispatcher volume ( #1073 )
2017-01-08 08:39:48 +00:00
Amish Shah
3b1264ad6d
Fix Buffer deprecation stuff
2017-01-07 22:30:20 +00:00
Amish Shah
9f8289e433
don't process empty sets
2017-01-07 22:09:51 +00:00
Amish Shah
de0ba9fb7c
change error to debug
2017-01-07 21:48:30 +00:00
Amish Shah
0df17b1634
Add broadcast.destroy();
2017-01-07 21:39:12 +00:00
Amish Shah
dc640017cd
Fix some stream bugs
2017-01-07 21:10:46 +00:00
Amish Shah
fcd7cf1450
stop destructive ending of broadcasts
2017-01-07 19:44:42 +00:00
Amish Shah
bace8bcac2
make broadcast not suck as much
2017-01-07 19:38:05 +00:00
Amish Shah
91e0a81d6b
Add playArbitraryInput
2016-12-30 19:20:32 +00:00
Amish Shah
eacbfbd520
Add VoiceBroadcast#playArbitraryInput and VoiceConnection#playArbitraryInput
2016-12-30 19:13:25 +00:00
Amish Shah
e2753136a4
Reorganise VoiceBroadcast dispatchers and also add new events
2016-12-30 18:21:22 +00:00
Amish Shah
d13c48bafa
more tiny voice docs
2016-12-30 18:10:48 +00:00
Amish Shah
69ccc75590
more voice docs
2016-12-30 17:56:58 +00:00
Amish Shah
221e7f8b21
Voice Connection docs
2016-12-30 17:44:05 +00:00
Amish Shah
f31a3725fe
StreamDispatcher documentation
2016-12-30 17:25:28 +00:00
Amish Shah
3109accf87
improve broadcasting performance
2016-12-30 15:25:28 +00:00
Amish Shah
fb1d0a3e74
fix eslint
2016-12-30 15:00:56 +00:00
Amish Shah
0a6d71d7e5
try this fix idk
2016-12-30 14:45:43 +00:00
Amish Shah
90ca422485
undo that
2016-12-30 14:30:57 +00:00
Amish Shah
22a6ded341
Defer some creations
2016-12-30 14:27:59 +00:00
Amish Shah
91fc6ccb5c
VoiceBroadcasting much more efficient
2016-12-30 13:57:09 +00:00
Amish Shah
bf4010e89c
Simplify broadcast creation
2016-12-30 12:46:34 +00:00
Amish Shah
2f630a0dbb
AudioPlayer now destroys all dispatchers on closing, Broadcasts are also destroyed properly
2016-12-30 12:43:56 +00:00
Schuyler Cebulskie
77548c194f
Add missing type
2016-12-29 20:01:30 -05:00
Amish Shah
c6f17054fc
Remove unused fs import
2016-12-29 22:59:43 +00:00
Amish Shah
12605575fb
Add VoiceBroadcast.pause and VoiceBroadcast.resume
2016-12-29 21:59:36 +00:00
Amish Shah
ad18b05d66
Reset what is playing
2016-12-29 21:51:23 +00:00
Amish Shah
72a99f9582
start work with broadcast streams
2016-12-29 21:22:13 +00:00
Amish Shah
4541b3e264
Simplify check in StreamDispatcher and add test voice bot
2016-12-29 16:10:51 +00:00