Optimisations

This commit is contained in:
hydrabolt
2015-11-07 18:39:22 +00:00
parent be1f5064c2
commit af8da5b0a2
8 changed files with 229 additions and 74 deletions

View File

@@ -25,6 +25,8 @@ var AudioEncoder = (function () {
return new Promise(function (resolve, reject) {
var enc = cpoc.spawn("ffmpeg", ["-i", file, "-f", "s16le", "-ar", "48000", "-ac", "1", "-af", "volume=1", "pipe:1"]);
var rcvd = 0;
enc.stdout.on("readable", function () {
callback(null, enc.stdout);
resolve(enc.stdout);