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