mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +00:00
Webpack build: 0a6d71d7e5
This commit is contained in:
parent
2d33ed1484
commit
3a5d795a59
2 changed files with 3 additions and 11 deletions
|
|
@ -21856,19 +21856,11 @@ class VoiceBroadcast extends EventEmitter {
|
||||||
|
|
||||||
buffer = this.applyVolume(buffer);
|
buffer = this.applyVolume(buffer);
|
||||||
|
|
||||||
setImmediate(() => this.process(buffer));
|
|
||||||
}
|
|
||||||
|
|
||||||
process(buffer) {
|
|
||||||
let count = 0;
|
|
||||||
|
|
||||||
for (const x of this.dispatchers.entries()) {
|
for (const x of this.dispatchers.entries()) {
|
||||||
const [volume, container] = x;
|
const [volume, container] = x;
|
||||||
if (container.size === 0) continue;
|
|
||||||
const opusPacket = this.opusEncoder.encode(this.applyVolume(buffer, volume));
|
const opusPacket = this.opusEncoder.encode(this.applyVolume(buffer, volume));
|
||||||
for (const dispatcher of container.values()) {
|
for (const dispatcher of container.values()) {
|
||||||
setTimeout(() => dispatcher.process(buffer, true, opusPacket), count);
|
setImmediate(() => dispatcher.process(buffer, true, opusPacket));
|
||||||
count++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
discord.indev-prism.min.js
vendored
4
discord.indev-prism.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue