mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
Initialise and document StreamDispatcher.paused
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -32,12 +32,19 @@ class StreamDispatcher extends EventEmitter {
|
|||||||
this._startStreaming();
|
this._startStreaming();
|
||||||
this._triggered = false;
|
this._triggered = false;
|
||||||
this._volume = streamOptions.volume;
|
this._volume = streamOptions.volume;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How many passes the dispatcher should take when sending packets to reduce packet loss. Values over 5
|
* How many passes the dispatcher should take when sending packets to reduce packet loss. Values over 5
|
||||||
* aren't recommended, as it means you are using 5x more bandwidth. You _can_ edit this at runtime.
|
* aren't recommended, as it means you are using 5x more bandwidth. You _can_ edit this at runtime.
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.passes = streamOptions.passes || 1;
|
this.passes = streamOptions.passes || 1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether playing is paused
|
||||||
|
* @type {boolean}
|
||||||
|
*/
|
||||||
|
this.paused = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user