diff options
Diffstat (limited to 'src/java/jogamp/common/av')
-rw-r--r-- | src/java/jogamp/common/av/JavaSoundAudioSink.java | 5 | ||||
-rw-r--r-- | src/java/jogamp/common/av/NullAudioSink.java | 5 |
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; } |