mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 13:32:04 +00:00
maybe fix voice idk
This commit is contained in:
parent
b7204f33b9
commit
4278a37e3c
2 changed files with 5 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -28,7 +28,10 @@ class VoiceConnectionPlayer extends EventEmitter {
|
|||
const options = { seek: seek, volume: volume };
|
||||
const encoder = this.converterEngine.createConvertStream(options.seek);
|
||||
const pipe = stream.pipe(encoder.stdin);
|
||||
pipe.on('unpipe', () => pipe.destroy());
|
||||
pipe.on('unpipe', () => {
|
||||
this.killStream(encoder.stdout);
|
||||
pipe.destroy();
|
||||
});
|
||||
this.processMap.set(encoder.stdout, {
|
||||
pcmConverter: encoder,
|
||||
inputStream: stream,
|
||||
|
|
|
|||
Loading…
Reference in a new issue