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:
Brian Tanner
2016-05-30 21:34:50 -04:00
committed by abalabahaha
parent 750f2a2b1b
commit a073010197
2 changed files with 5 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ export default class AudioEncoder {
enc.stdout.pipe(this.volume);
enc.stderr.on("data", function (data) {
enc.stderr.on("data", (data) => {
ffmpegErrors += "\n" + new Buffer(data).toString().trim();
});
@@ -148,7 +148,7 @@ export default class AudioEncoder {
}
});
this.volume.once("readable", function () {
this.volume.once("readable", () => {
var data = {
proc: enc,
stream: this.volume,