mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 00:32:03 +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 = {}) {
|
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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue