Fix my very silly mistake (#382)

This commit is contained in:
Programmix
2016-05-28 09:47:14 -07:00
committed by abalabahaha
parent 2194632b7d
commit b9506d01ab
2 changed files with 6 additions and 6 deletions

View File

@@ -91,7 +91,7 @@ var AudioEncoder = (function () {
stream.pipe(enc.stdin);
hookEncodingProcess(resolve, reject, enc, stream);
_this.hookEncodingProcess(resolve, reject, enc, stream);
});
};
@@ -103,7 +103,7 @@ var AudioEncoder = (function () {
var enc = _child_process2["default"].spawn(_this2.getCommand(), ['-i', file, '-f', 's16le', '-ar', '48000', '-ss', options.seek || 0, '-ac', 2, 'pipe:1']);
hookEncodingProcess(resolve, reject, enc);
_this2.hookEncodingProcess(resolve, reject, enc);
});
};
@@ -117,7 +117,7 @@ var AudioEncoder = (function () {
var options = ffmpegOptions.concat(['-f', 's16le', '-ar', '48000', '-ac', 2, 'pipe:1']);
var enc = _child_process2["default"].spawn(_this3.getCommand(), options);
hookEncodingProcess(resolve, reject, enc);
_this3.hookEncodingProcess(resolve, reject, enc);
});
};

View File

@@ -73,7 +73,7 @@ export default class AudioEncoder {
stream.pipe(enc.stdin);
hookEncodingProcess(resolve, reject, enc, stream);
this.hookEncodingProcess(resolve, reject, enc, stream);
});
}
@@ -90,7 +90,7 @@ export default class AudioEncoder {
'pipe:1'
]);
hookEncodingProcess(resolve, reject, enc);
this.hookEncodingProcess(resolve, reject, enc);
});
}
@@ -107,7 +107,7 @@ export default class AudioEncoder {
]);
var enc = cpoc.spawn(this.getCommand(), options);
hookEncodingProcess(resolve, reject, enc);
this.hookEncodingProcess(resolve, reject, enc);
});
}