diff options
author | Sven Gothel <[email protected]> | 2023-05-17 16:26:56 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-05-17 16:26:56 +0200 |
commit | 37977b4fe48cdc6be6f8e4938b5c79371d527a5d (patch) | |
tree | 131f38b038bf7f03c9ae39ab884abb61a454eca4 /src/java/jogamp/common/av | |
parent | 270172bcbd91f96d4a38a3d73e23d744f57a25b8 (diff) |
AudioSink: Add exclusive locking allowing implementations to short-cut for less management overhead (-> OpenAL + Synthesizer)
Diffstat (limited to 'src/java/jogamp/common/av')
-rw-r--r-- | src/java/jogamp/common/av/JavaSoundAudioSink.java | 6 | ||||
-rw-r--r-- | src/java/jogamp/common/av/NullAudioSink.java | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/java/jogamp/common/av/JavaSoundAudioSink.java b/src/java/jogamp/common/av/JavaSoundAudioSink.java index 4e4fdec..48a2a4d 100644 --- a/src/java/jogamp/common/av/JavaSoundAudioSink.java +++ b/src/java/jogamp/common/av/JavaSoundAudioSink.java @@ -84,6 +84,12 @@ public class JavaSoundAudioSink implements AudioSink { } @Override + public final void lockExclusive() { } + + @Override + public final void unlockExclusive() { } + + @Override public String toString() { return "JavaSoundSink[avail "+available+", dataLine "+info+", source "+auline+", bufferCount "+bufferCount+ ", chosen "+chosenFormat+", jsFormat "+format; diff --git a/src/java/jogamp/common/av/NullAudioSink.java b/src/java/jogamp/common/av/NullAudioSink.java index c1b0d33..6b918d9 100644 --- a/src/java/jogamp/common/av/NullAudioSink.java +++ b/src/java/jogamp/common/av/NullAudioSink.java @@ -47,6 +47,12 @@ public class NullAudioSink implements AudioSink { } @Override + public final void lockExclusive() { } + + @Override + public final void unlockExclusive() { } + + @Override public boolean isAvailable() { return available; } |