aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/av
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/jogamp/common/av')
-rw-r--r--src/java/jogamp/common/av/JavaSoundAudioSink.java9
-rw-r--r--src/java/jogamp/common/av/NullAudioSink.java1
2 files changed, 6 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;
}
diff --git a/src/java/jogamp/common/av/NullAudioSink.java b/src/java/jogamp/common/av/NullAudioSink.java
index 6b918d9..36681bb 100644
--- a/src/java/jogamp/common/av/NullAudioSink.java
+++ b/src/java/jogamp/common/av/NullAudioSink.java
@@ -29,6 +29,7 @@ package jogamp.common.av;
import java.nio.ByteBuffer;
+import com.jogamp.common.av.AudioFormat;
import com.jogamp.common.av.AudioSink;
public class NullAudioSink implements AudioSink {