Applied change to second function

This commit is contained in:
abalabahaha
2015-12-11 20:00:32 -08:00
parent e315fdafc6
commit e020287307

View File

@@ -86,12 +86,13 @@ export default class AudioEncoder {
var self = this;
return new Promise((resolve, reject) => {
var enc = cpoc.spawn(self.getCommand(), [
'-i', file,
'-loglevel', '0',
'-i', '-',
'-f', 's16le',
'-ar', '48000',
'-ac', 2,
'pipe:1'
]);
], {stdio: ['pipe', 'pipe', 'ignore']});
enc.stdout.once("readable", function () {
callback(null, {