Metadata metadata();
/**
- * Notifies the sink that the metadata of the audio stream has changed. This
+ * Notifies the filter that the metadata of the audio stream has changed. This
* method should return as fast as possible, i.e. every heavy lifting should be
* done from another thread.
*
DataPacket get(int bufferSize) throws IOException;
/**
- * Opens this sink using the format parameters of the given metadata.
+ * Opens this filter using the format parameters of the given metadata.
*
* @param metadata
* The metadata of the stream
*/
void open(Metadata metadata) throws IOException;
- /** Closes this sink. */
+ /** Closes this filter. */
void close();
/**
/**
* Rate limiting filter that only passes a specified amount of data per second
- * from its {@link net.pterodactylus.sonitus.data.Source} to its {@link
- * net.pterodactylus.sonitus.data.Sink}.
+ * from its source to its sinks.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
import net.pterodactylus.sonitus.data.AbstractFilter;
import net.pterodactylus.sonitus.data.DataPacket;
+import net.pterodactylus.sonitus.data.Filter;
import net.pterodactylus.sonitus.data.Metadata;
/**
- * {@link net.pterodactylus.sonitus.data.Sink} that writes all received data
- * into a file.
+ * {@link Filter} that writes all received data into a file.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
import com.google.common.io.Closeables;
/**
- * {@link net.pterodactylus.sonitus.data.Sink} implementation that delivers all
- * incoming data to an Icecast2 server.
+ * {@link Filter} implementation that delivers all incoming data to an Icecast2
+ * server.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
import net.pterodactylus.sonitus.data.ContentMetadata;
import net.pterodactylus.sonitus.data.Controller;
import net.pterodactylus.sonitus.data.DataPacket;
+import net.pterodactylus.sonitus.data.Filter;
import net.pterodactylus.sonitus.data.FormatMetadata;
import net.pterodactylus.sonitus.data.Metadata;
import net.pterodactylus.sonitus.io.MetadataStream;
import com.google.common.primitives.Ints;
/**
- * {@link Source} implementation that can download an audio stream from a
+ * {@link Filter} implementation that can download an audio stream from a
* streaming server.
* <p/>
* Currently only “audio/mpeg” (aka MP3) streams are supported.