X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FSource.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FSource.java;h=0000000000000000000000000000000000000000;hb=633a841142f978235ed9f745b6ba16c278963e62;hp=b12ec20f71a26b46cacc492e0bde0509da17b965;hpb=70ea21939e6071954eeb05f2a42e7a92a02013f2;p=sonitus.git diff --git a/src/main/java/net/pterodactylus/sonitus/data/Source.java b/src/main/java/net/pterodactylus/sonitus/data/Source.java deleted file mode 100644 index b12ec20..0000000 --- a/src/main/java/net/pterodactylus/sonitus/data/Source.java +++ /dev/null @@ -1,32 +0,0 @@ -package net.pterodactylus.sonitus.data; - -import java.io.IOException; - -/** - * A source produces an audio stream and accompanying metadata. - * - * @author David ‘Bombe’ Roden - */ -public interface Source extends ControlledComponent { - - /** - * Returns the metadata of the audio stream. - * - * @return The metadata of the audio stream - */ - Metadata metadata(); - - /** - * Retrieves data from the audio stream. - * - * @param bufferSize - * The maximum amount of bytes to retrieve from the audio stream - * @return A buffer filled with up to {@code bufferSize} bytes of data; the - * returned buffer may contain less data than requested but will not - * contain excess elements - * @throws IOException - * if an I/O error occurs - */ - byte[] get(int bufferSize) throws IOException; - -}