Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/se/lublin/humla/audio/IAudioMixer.java')
-rw-r--r--src/main/java/se/lublin/humla/audio/IAudioMixer.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/se/lublin/humla/audio/IAudioMixer.java b/src/main/java/se/lublin/humla/audio/IAudioMixer.java
new file mode 100644
index 0000000..093c659
--- /dev/null
+++ b/src/main/java/se/lublin/humla/audio/IAudioMixer.java
@@ -0,0 +1,12 @@
+package se.lublin.humla.audio;
+
+import java.util.Collection;
+
+/**
+ * A mixer for {@link IAudioMixerSource}s, where {@link T} is the source buffer type and {@link U}
+ * is the destination buffer type.
+ */
+public interface IAudioMixer<T,U> {
+ void mix(Collection<IAudioMixerSource<T>> sources, U buffer, int bufferOffset,
+ int bufferLength);
+}