Remove references to the event bus.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / source / StreamSource.java
index 2efc66d..c324857 100644 (file)
@@ -66,8 +66,6 @@ public class StreamSource extends AbstractFilter {
         * the response header for vital information (sampling frequency, number of
         * channels, etc.).
         *
-        * @param eventBus
-        *              The event bus
         * @param streamUrl
         *              The URL of the stream
         * @throws IOException
@@ -151,6 +149,11 @@ public class StreamSource extends AbstractFilter {
        }
 
        @Override
+       public void open(Metadata metadata) throws IOException {
+               /* ignore metadata when opening. */
+       }
+
+       @Override
        public DataPacket get(int bufferSize) throws IOException {
                byte[] buffer = new byte[bufferSize];
                metadataStream.read(buffer);