mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
Applied change to second function
This commit is contained in:
parent
e315fdafc6
commit
e020287307
1 changed files with 3 additions and 2 deletions
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue