X-Git-Url: https://git.pterodactylus.net/?p=sonitus.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FControlledComponent.java;h=d3fde8e8aad270f1c845d6b940eda0e9e0fd6f9b;hp=ee506209596432647e2f705c45d112615ba01fa5;hb=cbeadf6d9eea57ab98cacd60e2419dd3c18bef89;hpb=87436ac0b103a112722c1df835e11ec928e57d38 diff --git a/src/main/java/net/pterodactylus/sonitus/data/ControlledComponent.java b/src/main/java/net/pterodactylus/sonitus/data/ControlledComponent.java index ee50620..d3fde8e 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/ControlledComponent.java +++ b/src/main/java/net/pterodactylus/sonitus/data/ControlledComponent.java @@ -63,4 +63,14 @@ public interface ControlledComponent { */ public List> controllers(); + /** + * 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); + }