Commit Graph

50 Commits

Author SHA1 Message Date
Gus Caplan 42505b78c1 chore: add strict mode (#2974) 2018-12-03 15:19:10 -06:00
Cat 8a2ace45d8 docs: fix VoiceBroadcast documentation (#2277) 2018-01-21 18:23:23 +01:00
Amish Shah b16e6f8262 Fix VoiceBroadcast#play documentation 2018-01-20 16:57:27 +00:00
Amish Shah ca96e1478a Make docs technically correct 2018-01-20 13:45:22 +00:00
Amish Shah ef02bd2935 Add stubs for docs 2018-01-20 00:05:37 +00:00
Amish Shah 2b5fc77a67 Rudimentary support for unified audio playing! 🎉 2018-01-19 23:55:59 +00:00
Amish Shah 580bda46ea Fix documentation for VoiceBroadcast (play methods return BroadcastDispatcher not StreamDispatcher) 2018-01-19 14:40:58 +00:00
Amish Shah 3b1c5d3494 Expose VoiceBroadcast#dispatcher so that the broadcast can be controlled 2018-01-19 14:39:51 +00:00
Amish Shah e7375aa0fd Reimplement broadcast (un)subscribe events 2018-01-19 14:32:51 +00:00
Will Nelson dbf4ef9a7c handle string ffmpeg input (#2064)
* handle string ffmpeg input

* rename stuff for new purpose

* file prefix isn't needed

* pass tests

* remove dumb spaces in dispatcher docs
2017-10-27 22:42:21 +01:00
Amish Shah 8a87cbf404 Better broadcast stuff 2017-10-27 14:32:02 +01:00
Amish Shah bdf8955098 "yeah we need voice broadcasts cause we make big big music bots" no stop 2017-10-26 21:00:53 +01:00
Amish Shah 780e67d19f Volume!! 2017-10-26 16:30:55 +01:00
Amish Shah 3e3e6f9af7 Actually fix ESlint this time 2017-10-26 13:45:36 +01:00
Amish Shah 65673197d4 Start rewrite with new prism 2017-10-25 23:14:41 +01:00
Robin B 97823bc376 Various documentation adjustments (#2001)
* docs(various): Add "at" to createdAt description

* docs(Client): Adjust to fit with guilds property

* docs(various): Adjust phrasing & fix typos

* docs(various): Clarifications

* docs(Permissions): fix numerus

* docs(DataStore): capitalize DataStore

* docs(various): Formatting changes

* docs(Presence): Expand RichPresenceAssets docs

* Add space
2017-10-07 01:56:17 +02:00
iCrawl 2aa2f73c74 Docs cleanup 2017-08-17 20:04:01 +02:00
FireController1847 580e066a36 Init pause variable on VoiceBroadcast (#1751)
* Init pause variable on VoiceBroadcast

* Move it back. Could have swore I did this.
2017-08-04 09:21:18 +02:00
aemino 4342ed29a8 Audio bitrate support (#1439)
* Audio bitrate support

Note: not implemented for VoiceBroadcasts

* Fix default args, auto bitrate

* Late night typos are the best

* Changes bitrate to kbps for VoiceChannel stuff

* Add methods to manipulate bitrate while encoding
2017-07-26 10:06:40 +02:00
aemino 4e79a885b8 Remove unused VoiceBroadcast#guaranteeOpusEngine (fixes #1556) (#1563) 2017-06-05 06:52:31 +02:00
Amish Shah dd110f4824 Add example for creating VoiceBroadcasts 2017-04-30 11:04:41 +01:00
Crawl ac92d2cecc Improve docs a bit 2017-04-30 04:30:44 +02:00
Crawl 53eda09f72 Improve docs 2017-04-24 16:29:29 +02:00
aemino 6d4fe89212 Volume stuff docs fixes (#1354)
* Volume stuff docs fixes

* 10/10 for spelling
2017-04-10 11:50:33 +01:00
SpaceEEC ecb8655dac Document readonly and private properties (#1338) 2017-04-03 20:05:36 +02:00
Schuyler Cebulskie 136cab240d Add new ESLint rules 2017-03-17 01:23:39 -04:00
Crawl 4ef0ec491c Add arrow-parens eslint rule & fix inconsistencies 2017-03-13 15:56:00 +01:00
Programmix 76637ed10d Fix VoiceDispatcher docs (#1214) 2017-02-23 21:42:41 -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
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 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 3109accf87 improve broadcasting performance 2016-12-30 15:25:28 +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 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