Create all controlled components with an event bus.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / filter / AudioProcessingFilter.java
index 5539eea..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.
  *
@@ -30,6 +32,18 @@ import net.pterodactylus.sonitus.io.ProcessingOutputStream;
  */
 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(EventBus eventBus, String name) {
+               super(eventBus, name);
+       }
+
        //
        // DUMMYFILTER METHODS
        //