<version>14.0-rc1</version>
</dependency>
<dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ <version>3.0</version>
+ </dependency>
+ <dependency>
<groupId>org.jcraft</groupId>
<artifactId>jorbis</artifactId>
<version>0.0.17</version>
import net.pterodactylus.sonitus.data.ReusableSink;
import net.pterodactylus.sonitus.data.Source;
+import com.google.common.eventbus.EventBus;
+import com.google.inject.Inject;
+
/**
* {@link ReusableSink} implementation that supports changing the source without
* letting the {@link net.pterodactylus.sonitus.data.Sink} know.
/** Object used for synchronization. */
private final Object syncObject = new Object();
+ /** The event bus. */
+ private final EventBus eventBus;
+
/** The connection. */
private Connection connection;
/** The format. */
private Format format;
+ @Inject
+ public MultiSourceFilter(EventBus eventBus) {
+ this.eventBus = eventBus;
+ }
+
@Override
public Format format() {
return format;