Create all controlled components with an event bus.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / filter / LameMp3Decoder.java
index 7493b3e..17e0973 100644 (file)
@@ -20,6 +20,7 @@ package net.pterodactylus.sonitus.data.filter;
 import net.pterodactylus.sonitus.data.Metadata;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.eventbus.EventBus;
 
 /**
  * {@link ExternalMp3Decoder} implementation that uses LAME to decode an MP3.
@@ -37,11 +38,13 @@ public class LameMp3Decoder extends ExternalMp3Decoder {
        /**
         * Creates a new LAME MP3 decoder.
         *
+        * @param eventBus
+        *              The event bus
         * @param binary
         *              The location of the binary
         */
-       public LameMp3Decoder(String binary) {
-               super("LAME Decoder");
+       public LameMp3Decoder(EventBus eventBus, String binary) {
+               super(eventBus, "LAME Decoder");
                this.binary = binary;
        }