X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FSink.java;h=937a4e5f9e9d2c9fb3e9ac4348f2d064ad5b095f;hb=70ea21939e6071954eeb05f2a42e7a92a02013f2;hp=09679c62a1b5d4e29a9f8fa35434a979d717e268;hpb=7188da95cfb6dc2bf140eb8ac7e4dc99a0761a97;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 index 09679c6..937a4e5 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/Sink.java +++ b/src/main/java/net/pterodactylus/sonitus/data/Sink.java @@ -8,7 +8,7 @@ import java.io.IOException; * * @author David ‘Bombe’ Roden */ -public interface Sink { +public interface Sink extends ControlledComponent { /** * Opens this sink using the format parameters of the given metadata. @@ -33,14 +33,4 @@ public interface Sink { */ void process(byte[] buffer) throws IOException; - /** - * Notifies the sink 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. - * - * @param metadata - * The new metadata - */ - void metadataUpdated(Metadata metadata); - }