mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
Fix player
This commit is contained in:
parent
393130dedb
commit
a8511ebfaf
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class BasePlayer extends EventEmitter {
|
|||
|
||||
playPCMStream(stream, options, streams = {}) {
|
||||
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) {
|
||||
stream.pipe(opus);
|
||||
return this.playOpusStream(opus, options, streams);
|
||||
|
|
|
|||
Loading…
Reference in a new issue