X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FFilter.java;h=794c82a17966885ba4e6b021f47e18094070fa52;hb=bd7f4af5135a4b67164e12d31bd0904c673ab2cc;hp=94c986c9337b486ab0e3cea9dc8ad571341c86d2;hpb=367edf1b6da27a73e1f822d7087a3a764ebff3e8;p=sonitus.git diff --git a/src/main/java/net/pterodactylus/sonitus/data/Filter.java b/src/main/java/net/pterodactylus/sonitus/data/Filter.java index 94c986c..794c82a 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/Filter.java +++ b/src/main/java/net/pterodactylus/sonitus/data/Filter.java @@ -18,30 +18,11 @@ package net.pterodactylus.sonitus.data; /** - * A filter processes an input to produce an output. + * A filter is both a {@link Source} and a {@link Sink}. It is used to process + * the audio date in whatever way seems appropriate. * * @author David ‘Bombe’ Roden */ -public interface Filter { - - /** - * Returns whether this filter understands the given format. - * - * @param format - * The format to check for - * @return {@code true} if this filter understands the given format, {@code - * false} otherwise - */ - boolean understands(Format format); - - /** - * Returns whether this filter can produce the given format. - * - * @param format - * The format to check for - * @return {@code true} if this filter can produce the given format, {@code - * false} otherwise - */ - boolean produces(Format format); +public interface Filter extends Controlled, Source, Sink { }