Create all controlled components with an event bus.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / filter / ExternalMp3Encoder.java
index 21654af..85810c9 100644 (file)
@@ -24,6 +24,8 @@ import java.io.IOException;
 
 import net.pterodactylus.sonitus.data.Metadata;
 
+import com.google.common.eventbus.EventBus;
+
 /**
  * Basic {@link net.pterodactylus.sonitus.data.filter.ExternalFilter}
  * implementation that verifies that the connected source is PCM-encoded and
@@ -36,11 +38,13 @@ public abstract class ExternalMp3Encoder extends ExternalFilter {
        /**
         * Creates a new external MP3 encoder.
         *
+        * @param eventBus
+        *              The event bus
         * @param name
         *              The name of the filter
         */
-       protected ExternalMp3Encoder(String name) {
-               super(name);
+       protected ExternalMp3Encoder(EventBus eventBus, String name) {
+               super(eventBus, name);
        }
 
        @Override