summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-03-01 16:49:15 +0100
committerSven Gothel <[email protected]>2014-03-01 16:49:15 +0100
commit0d73e966093ecdce124cef682f12d7a8c223de29 (patch)
tree403009451e5ebd5acc6f87db72ffb9bc16c60cde /src/jogl/classes/com/jogamp
parentd18df847b17a89fdc4b47fa9cfe010af1a61690b (diff)
AudioSink: Fix API doc (minor edit)
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java b/src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java
index b964245ad..f4ea29084 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java
@@ -133,7 +133,7 @@ public interface AudioSink {
* @param sampleCount sample count per frame and channel
*/
public final float getSamplesDuration(int sampleCount) {
- return ( 1000f * (float) sampleCount ) / (float)sampleRate;
+ return ( 1000f * sampleCount ) / sampleRate;
}
/**
@@ -152,7 +152,7 @@ public interface AudioSink {
* @param frameDuration duration per frame in milliseconds.
*/
public final int getFrameCount(int millisecs, float frameDuration) {
- return Math.max(1, (int) ( (float)millisecs / frameDuration + 0.5f ));
+ return Math.max(1, (int) ( millisecs / frameDuration + 0.5f ));
}
/**
@@ -187,7 +187,7 @@ public interface AudioSink {
* <p>
* Byte Count -> Sample Count
* </p>
- * @param sampleCount sample count
+ * @param byteCount number of bytes
*/
public final int getBytesSampleCount(int byteCount) {
return ( byteCount << 3 ) / sampleSize;