X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2Ffilter%2FLameMp3Encoder.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2Ffilter%2FLameMp3Encoder.java;h=ffd4cc69b73ce3c25b0d50315048fe818f17a71a;hb=cbeadf6d9eea57ab98cacd60e2419dd3c18bef89;hp=77df8aa06f157c9a9b0a7238e95978ca7ebdc303;hpb=87436ac0b103a112722c1df835e11ec928e57d38;p=sonitus.git diff --git a/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java b/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java index 77df8aa..ffd4cc6 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java +++ b/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java @@ -23,7 +23,6 @@ import net.pterodactylus.sonitus.data.Metadata; import com.google.common.base.Optional; import com.google.common.collect.ImmutableList; -import com.google.common.eventbus.EventBus; /** * {@link ExternalMp3Encoder} implementation that uses LAME to encode MP3s. @@ -67,45 +66,36 @@ public class LameMp3Encoder extends ExternalMp3Encoder { /** * Creates a new LAME MP3 encoder. * - * @param eventBus - * The event bus * @param binary * The location of the binary * @param preset - * The preset to use */ - public LameMp3Encoder(EventBus eventBus, String binary, Preset preset) { - this(eventBus, binary, preset, -1); + public LameMp3Encoder(String binary, Preset preset) { + this(binary, preset, -1); } /** * Creates a new LAME MP3 encoder. * - * @param eventBus - * The event bus * @param binary * The location of the binary * @param bitrate - * The bitrate to encode to (in kbps) */ - public LameMp3Encoder(EventBus eventBus, String binary, int bitrate) { - this(eventBus, binary, null, bitrate); + public LameMp3Encoder(String binary, int bitrate) { + this(binary, null, bitrate); } /** * Creates a new LAME MP3 encoder. * - * @param eventBus - * The event bus * @param binary * The location of the binary * @param preset * The preset to use * @param bitrate - * The bitrate to encode to (in kbps) */ - private LameMp3Encoder(EventBus eventBus, String binary, Preset preset, int bitrate) { - super(eventBus, "LAME Encoder"); + private LameMp3Encoder(String binary, Preset preset, int bitrate) { + super("LAME Encoder"); this.binary = binary; this.preset = Optional.fromNullable(preset); this.bitrate = (bitrate < 0) ? Optional.absent() : Optional.of(bitrate);