aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/av/JavaSoundAudioSink.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-18 03:49:00 +0200
committerSven Gothel <[email protected]>2023-05-18 03:49:00 +0200
commit2b339721a4d6dd4f3af129a4654375b15c7ea340 (patch)
tree7573d533dfd4a0c552d0dffa16d95aefc5848a7a /src/java/jogamp/common/av/JavaSoundAudioSink.java
parent37977b4fe48cdc6be6f8e4938b5c79371d527a5d (diff)
Place AudioFormat in its own file outside AudioSink, JOAL's ALAudioSink has moved to com.jogamp.openal.util.ALAudioSink (public)
Diffstat (limited to 'src/java/jogamp/common/av/JavaSoundAudioSink.java')
-rw-r--r--src/java/jogamp/common/av/JavaSoundAudioSink.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/java/jogamp/common/av/JavaSoundAudioSink.java b/src/java/jogamp/common/av/JavaSoundAudioSink.java
index 48a2a4d..f5f9eb8 100644
--- a/src/java/jogamp/common/av/JavaSoundAudioSink.java
+++ b/src/java/jogamp/common/av/JavaSoundAudioSink.java
@@ -34,6 +34,7 @@ import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.SourceDataLine;
+import com.jogamp.common.av.AudioFormat;
import com.jogamp.common.av.AudioSink;
/***
@@ -60,7 +61,7 @@ public class JavaSoundAudioSink implements AudioSink {
private int bufferCount;
private final byte [] sampleData = new byte[BUFFER_SIZE];
private boolean available = false;
- private AudioSink.AudioFormat chosenFormat = null;
+ private AudioFormat chosenFormat = null;
private volatile boolean playRequested = false;
private float volume = 1.0f;
@@ -122,7 +123,7 @@ public class JavaSoundAudioSink implements AudioSink {
}
@Override
- public AudioSink.AudioFormat getPreferredFormat() {
+ public AudioFormat getPreferredFormat() {
return DefaultFormat;
}
@@ -132,12 +133,12 @@ public class JavaSoundAudioSink implements AudioSink {
}
@Override
- public final boolean isSupported(final AudioSink.AudioFormat format) {
+ public final boolean isSupported(final AudioFormat format) {
return true;
}
@Override
- public boolean init(final AudioSink.AudioFormat requestedFormat, final float frameDuration, final int initialQueueSize, final int queueGrowAmount, final int queueLimit) {
+ public boolean init(final AudioFormat requestedFormat, final float frameDuration, final int initialQueueSize, final int queueGrowAmount, final int queueLimit) {
if( !staticAvailable ) {
return false;
}