Add ability to disable volume transform

This commit is contained in:
Amish Shah
2017-10-26 18:56:02 +01:00
parent 6490d1b911
commit 3696b4a810
2 changed files with 7 additions and 2 deletions

View File

@@ -432,7 +432,8 @@ class VoiceConnection extends EventEmitter {
* Options that can be passed to stream-playing methods:
* @typedef {Object} StreamOptions
* @property {number} [seek=0] The time to seek to
* @property {number} [volume=1] The volume to play at
* @property {number|boolean} [volume=1] The volume to play at. Set this to false to disable volume transforms for
* this stream to improve performance.
* @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