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; var self = this;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
var enc = cpoc.spawn(self.getCommand(), [ var enc = cpoc.spawn(self.getCommand(), [
'-i', file, '-loglevel', '0',
'-i', '-',
'-f', 's16le', '-f', 's16le',
'-ar', '48000', '-ar', '48000',
'-ac', 2, '-ac', 2,
'pipe:1' 'pipe:1'
]); ], {stdio: ['pipe', 'pipe', 'ignore']});
enc.stdout.once("readable", function () { enc.stdout.once("readable", function () {
callback(null, { callback(null, {