mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Aaron copied horrible code from elsewhere
This commit is contained in:
@@ -60,7 +60,7 @@ export default class AudioEncoder {
|
||||
|
||||
encodeStream(stream, options) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.volume = new VolumeTransformer(options.volume || 1);
|
||||
this.volume = new VolumeTransformer(options.volume);
|
||||
|
||||
var enc = cpoc.spawn(this.getCommand(), [
|
||||
'-hide_banner',
|
||||
@@ -107,7 +107,7 @@ export default class AudioEncoder {
|
||||
|
||||
encodeFile(file, options) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.volume = new VolumeTransformer(options.volume || 1);
|
||||
this.volume = new VolumeTransformer(options.volume);
|
||||
|
||||
var enc = cpoc.spawn(this.getCommand(), [
|
||||
'-hide_banner',
|
||||
|
||||
Reference in New Issue
Block a user