mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Fix player
This commit is contained in:
@@ -48,7 +48,7 @@ class BasePlayer extends EventEmitter {
|
|||||||
|
|
||||||
playPCMStream(stream, options, streams = {}) {
|
playPCMStream(stream, options, streams = {}) {
|
||||||
this.destroyDispatcher();
|
this.destroyDispatcher();
|
||||||
const opus = streams.opus = new prism.opus.Encoder({ channels: 2, rate: 48000, frameSize: 960 });
|
const opus = streams.opus = new prism.opus.Encoder({ channels: 2, rate: 48000, frameSize: 1920 });
|
||||||
if (options && options.volume === false) {
|
if (options && options.volume === false) {
|
||||||
stream.pipe(opus);
|
stream.pipe(opus);
|
||||||
return this.playOpusStream(opus, options, streams);
|
return this.playOpusStream(opus, options, streams);
|
||||||
|
|||||||
Reference in New Issue
Block a user