mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 20:30:38 +00:00
Use passes and increase highWaterMark to 12
This commit is contained in:
parent
fa7f391b3a
commit
121a40bb4a
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ nonce.fill(0);
|
|||
class StreamDispatcher extends Writable {
|
||||
constructor(
|
||||
player,
|
||||
{ seek = 0, volume = 1, passes = 1, fec, plp, bitrate = 96, highWaterMark = 8 } = {},
|
||||
{ seek = 0, volume = 1, passes = 1, fec, plp, bitrate = 96, highWaterMark = 12 } = {},
|
||||
streams) {
|
||||
const streamOptions = { seek, volume, passes, fec, plp, bitrate, highWaterMark };
|
||||
super(streamOptions);
|
||||
|
|
@ -219,7 +219,7 @@ class StreamDispatcher extends Writable {
|
|||
}
|
||||
|
||||
_sendPacket(packet) {
|
||||
let repeats = 1;
|
||||
let repeats = this.streamOptions.passes;
|
||||
/**
|
||||
* Emitted whenever the dispatcher has debug information.
|
||||
* @event StreamDispatcher#debug
|
||||
|
|
|
|||
Loading…
Reference in a new issue