mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix bug in hookEncodingProcess causing playRawStream to not work (#392)
* fix typo in hookEncodingProcess * proper fix for _this4 bug in src, use arrow functions * Get abalabahaha to build the noobs' changes
This commit is contained in:
committed by
abalabahaha
parent
750f2a2b1b
commit
a073010197
@@ -122,6 +122,8 @@ var AudioEncoder = (function () {
|
||||
};
|
||||
|
||||
AudioEncoder.prototype.hookEncodingProcess = function hookEncodingProcess(resolve, reject, enc, stream) {
|
||||
var _this4 = this;
|
||||
|
||||
var processKilled = false;
|
||||
|
||||
function killProcess(cause) {
|
||||
@@ -160,7 +162,7 @@ var AudioEncoder = (function () {
|
||||
this.volume.once("readable", function () {
|
||||
var data = {
|
||||
proc: enc,
|
||||
stream: this.volume,
|
||||
stream: _this4.volume,
|
||||
channels: 2
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user