X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FSink.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FSink.java;h=0000000000000000000000000000000000000000;hb=633a841142f978235ed9f745b6ba16c278963e62;hp=937a4e5f9e9d2c9fb3e9ac4348f2d064ad5b095f;hpb=70ea21939e6071954eeb05f2a42e7a92a02013f2;p=sonitus.git 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 index 937a4e5..0000000 --- a/src/main/java/net/pterodactylus/sonitus/data/Sink.java +++ /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 David ‘Bombe’ Roden - */ -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; - -}