Pull all interfaces into a single interface: Filter.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / Sink.java
diff --git a/src/main/java/net/pterodactylus/sonitus/data/Sink.java b/src/main/java/net/pterodactylus/sonitus/data/Sink.java
deleted file mode 100644 (file)
index 937a4e5..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-package net.pterodactylus.sonitus.data;
-
-import java.io.IOException;
-
-/**
- * A sink is a destination for audio data. It can be played on speakers, it can
- * be written to a file, or it can be sent to a remote streaming server.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
- */
-public interface Sink extends ControlledComponent {
-
-       /**
-        * Opens this sink using the format parameters of the given metadata.
-        *
-        * @param metadata
-        *              The metadata of the stream
-        * @throws IOException
-        *              if an I/O error occurs
-        */
-       void open(Metadata metadata) throws IOException;
-
-       /** Closes this sink. */
-       void close();
-
-       /**
-        * Processes the given buffer of data.
-        *
-        * @param buffer
-        *              The data to process
-        * @throws IOException
-        *              if an I/O error occurs
-        */
-       void process(byte[] buffer) throws IOException;
-
-}