Create all controlled components with an event bus.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / filter / AudioProcessingFilter.java
index e87935b..b584395 100644 (file)
@@ -23,6 +23,8 @@ import java.io.OutputStream;
 import net.pterodactylus.sonitus.data.Filter;
 import net.pterodactylus.sonitus.io.ProcessingOutputStream;
 
+import com.google.common.eventbus.EventBus;
+
 /**
  * {@link Filter} implementation that can process audio samples internally.
  *
@@ -33,11 +35,13 @@ public abstract class AudioProcessingFilter extends DummyFilter {
        /**
         * Creates a new audio processing filter with the given name.
         *
+        * @param eventBus
+        *              The event bus
         * @param name
         *              The name of the filter
         */
-       protected AudioProcessingFilter(String name) {
-               super(name);
+       protected AudioProcessingFilter(EventBus eventBus, String name) {
+               super(eventBus, name);
        }
 
        //