mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 20:51:14 +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 options = { seek: seek, volume: volume };
|
||||||
const encoder = this.converterEngine.createConvertStream(options.seek);
|
const encoder = this.converterEngine.createConvertStream(options.seek);
|
||||||
const pipe = stream.pipe(encoder.stdin);
|
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, {
|
this.processMap.set(encoder.stdout, {
|
||||||
pcmConverter: encoder,
|
pcmConverter: encoder,
|
||||||
inputStream: stream,
|
inputStream: stream,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue