Add highWaterMark

This commit is contained in:
Amish Shah
2017-10-29 13:48:07 +00:00
parent 5879cd7c8e
commit 5cb757add6
2 changed files with 9 additions and 3 deletions

View File

@@ -439,8 +439,11 @@ class VoiceConnection extends EventEmitter {
* @property {number} [passes=1] How many times to send the voice packet to reduce packet loss
* @property {number} [plp] Expected packet loss percentage
* @property {boolean} [fec] Enabled forward error correction
* @property {number|string} [bitrate=96] The bitrate (quality) of the audio in kbps
* @property {number|string} [bitrate=96] The bitrate (quality) of the audio in kbps.
* If set to 'auto', the voice channel's bitrate will be used
* @property {number} [highWaterMark=8] The maximum number of opus packets to make and store before they are
* actually needed. See https://nodejs.org/en/docs/guides/backpressuring-in-streams/. Setting this value to
* 1 means that changes in volume will be more instant.
*/
/**