X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FFilter.java;h=c251cfe5ac15ea8196eede37ace548f3063eb7dc;hb=fa5196e029c48636f0c318311244395cfae49953;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..c251cfe 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 ControlledComponent, Source, Sink { }