mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +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 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,
|
||||
|
||||
Reference in New Issue
Block a user