aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/av
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-20 04:15:05 +0200
committerSven Gothel <[email protected]>2023-05-20 04:15:05 +0200
commitefa6fe4f5746aeae49c3a01dbe243be88309f7bc (patch)
tree82e9e66dab8b8e33182bd4424971aa3aec86d948 /src/java/jogamp/common/av
parentae301d0f1288b31841e91be8d63a2ab024c2158f (diff)
Add AudioSink.getSourceCount(), refine Audio* API doc
Diffstat (limited to 'src/java/jogamp/common/av')
-rw-r--r--src/java/jogamp/common/av/JavaSoundAudioSink.java5
-rw-r--r--src/java/jogamp/common/av/NullAudioSink.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/java/jogamp/common/av/JavaSoundAudioSink.java b/src/java/jogamp/common/av/JavaSoundAudioSink.java
index 4d89c4d..1617b10 100644
--- a/src/java/jogamp/common/av/JavaSoundAudioSink.java
+++ b/src/java/jogamp/common/av/JavaSoundAudioSink.java
@@ -123,6 +123,11 @@ public class JavaSoundAudioSink implements AudioSink {
}
@Override
+ public int getSourceCount() {
+ return -1;
+ }
+
+ @Override
public float getDefaultLatency() {
return 20f/1000f; // fake 20ms
}
diff --git a/src/java/jogamp/common/av/NullAudioSink.java b/src/java/jogamp/common/av/NullAudioSink.java
index 7a02af9..781cfca 100644
--- a/src/java/jogamp/common/av/NullAudioSink.java
+++ b/src/java/jogamp/common/av/NullAudioSink.java
@@ -89,6 +89,11 @@ public class NullAudioSink implements AudioSink {
}
@Override
+ public int getSourceCount() {
+ return -1;
+ }
+
+ @Override
public float getDefaultLatency() {
return 0;
}