mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Applied change to second function
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user