mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Fix voice 😄
This commit is contained in:
parent
a52beaa78d
commit
77e83fb85a
3 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -109,7 +109,7 @@ class StreamDispatcher extends EventEmitter {
|
|||
const data = this.streamingData;
|
||||
|
||||
if (data.missed >= 5) {
|
||||
this._triggerTerminalState('error', new Error('Stream is not generating quickly enough.'));
|
||||
this._triggerTerminalState('end', 'Stream is not generating quickly enough.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class VoiceConnectionPlayer extends EventEmitter {
|
|||
convertStream(stream, { seek = 0, volume = 1 } = {}) {
|
||||
const options = { seek: seek, volume: volume };
|
||||
const encoder = this.converterEngine.createConvertStream(options.seek);
|
||||
const pipe = stream.pipe(encoder.stdin);
|
||||
const pipe = stream.pipe(encoder.stdin, { end: false });
|
||||
pipe.on('unpipe', () => {
|
||||
this.killStream(encoder.stdout);
|
||||
pipe.destroy();
|
||||
|
|
|
|||
Loading…
Reference in a new issue