mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
maybe fix voice idk
This commit is contained in:
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user