This commit is contained in:
Travis CI 2016-12-30 17:00:57 +00:00
parent 3a5d795a59
commit 6479565491
2 changed files with 8 additions and 6 deletions

View file

@ -21857,11 +21857,13 @@ class VoiceBroadcast extends EventEmitter {
buffer = this.applyVolume(buffer); buffer = this.applyVolume(buffer);
for (const x of this.dispatchers.entries()) { for (const x of this.dispatchers.entries()) {
const [volume, container] = x; setImmediate(() => {
const opusPacket = this.opusEncoder.encode(this.applyVolume(buffer, volume)); const [volume, container] = x;
for (const dispatcher of container.values()) { const opusPacket = this.opusEncoder.encode(this.applyVolume(buffer, volume));
setImmediate(() => dispatcher.process(buffer, true, opusPacket)); for (const dispatcher of container.values()) {
} setImmediate(() => dispatcher.process(buffer, true, opusPacket));
}
});
} }
} }

File diff suppressed because one or more lines are too long