Pull all interfaces into a single interface: Filter.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / filter / VolumeFilter.java
index 702594a..01d325f 100644 (file)
@@ -25,8 +25,6 @@ import net.pterodactylus.sonitus.data.Filter;
 import net.pterodactylus.sonitus.data.controller.Fader;
 import net.pterodactylus.sonitus.data.controller.Switch;
 
-import com.google.common.eventbus.EventBus;
-
 /**
  * Internal {@link Filter} implementation that can reduce the volume of the
  * signal.
@@ -41,20 +39,15 @@ public class VolumeFilter extends AudioProcessingFilter {
        /** The mute switch. */
        private final Switch muteSwitch;
 
-       /**
-        * Creates a new volume filter.
-        *
-        * @param eventBus
-        *              The event bus
-        */
-       public VolumeFilter(EventBus eventBus) {
-               super(eventBus, "Volume");
+       /** Creates a new volume filter. */
+       public VolumeFilter() {
+               super("Volume");
                volumeFader = new Fader("Volume", 1.0);
                muteSwitch = new Switch("Mute", false);
        }
 
        //
-       // CONTROLLED METHODS
+       // FILTER METHODS
        //
 
        @Override
@@ -62,10 +55,6 @@ public class VolumeFilter extends AudioProcessingFilter {
                return Arrays.<Controller<?>>asList(volumeFader, muteSwitch);
        }
 
-       //
-       // AUDIOPROCESSINGFILTER METHODS
-       //
-
        @Override
        protected int[] processSamples(int[] samples) {
                int[] processedSamples = new int[samples.length];