X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FPipeline.java;h=45d20bf313845264aee913ebd07f65a584491bb7;hb=f3d55e97b4d097b415a3577191e2d9030ba28258;hp=f36f3c9c1e49fd886cbd5a180389f3977bcc4730;hpb=bac649fc4b83476a15fab2b6f25ba935d98be2df;p=sonitus.git
diff --git a/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java b/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
index f36f3c9..45d20bf 100644
--- a/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
+++ b/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
@@ -19,6 +19,7 @@ package net.pterodactylus.sonitus.data;
import java.io.IOException;
import java.util.Collection;
+import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
@@ -29,12 +30,15 @@ import java.util.concurrent.atomic.AtomicBoolean;
import java.util.logging.Logger;
import com.google.common.base.Function;
+import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.FluentIterable;
+import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMultimap;
import com.google.common.collect.Lists;
import com.google.common.collect.Multimap;
+import com.google.common.util.concurrent.MoreExecutors;
/**
* A pipeline is responsible for streaming audio data from a {@link Source} to
@@ -42,7 +46,7 @@ import com.google.common.collect.Multimap;
*
* @author David âBombeâ Roden
*/
-public class Pipeline {
+public class Pipeline implements Iterable {
/** The logger. */
private static final Logger logger = Logger.getLogger(Pipeline.class.getName());
@@ -53,8 +57,8 @@ public class Pipeline {
/** The sinks for each source. */
private final Multimap