Skip to content

Commit

Permalink
ALAudioSink GLMediaPlayerImpl FFMPEGMediaPlayer: Verbosity only w/ DE…
Browse files Browse the repository at this point in the history
…BUG flag.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
  • Loading branch information
xranby committed Dec 18, 2013
1 parent 82927b0 commit 8a032a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java
Expand Up @@ -487,7 +487,7 @@ private final int dequeueBuffer(boolean wait) {
// clip wait at [2 .. 100] ms
final int avgBufferDura = chosenFormat.getBytesDuration( alBufferBytesQueued / alFramesPlaying.size() );
final int sleep = Math.max(2, Math.min(100, releaseBufferLimes * avgBufferDura));
if( DEBUG || true ) {
if( DEBUG ) {
System.err.println(getThreadName()+": ALAudioSink: Dequeue.wait["+i+"]: avgBufferDura "+avgBufferDura+", releaseBufferLimes "+releaseBufferLimes+", sleep "+sleep+" ms, playImpl "+(AL.AL_PLAYING == getSourceState())+", processed "+val[0]+", "+this);
}
unlockContext();
Expand Down
6 changes: 4 additions & 2 deletions src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java
Expand Up @@ -757,7 +757,9 @@ private final void removeAllTextureFrames(GL gl) {
}
texFrames[i] = null;
}
System.err.println(Thread.currentThread().getName()+"> Clear TexFrame["+i+"]: "+frame+" -> null");
if( DEBUG ) {
System.err.println(Thread.currentThread().getName()+"> Clear TexFrame["+i+"]: "+frame+" -> null");
}
}
}
}
Expand Down Expand Up @@ -1609,4 +1611,4 @@ protected static final int getPropIntVal(Map<String, String> props, String key)
}
return 0;
}
}
}
Expand Up @@ -185,13 +185,15 @@ public class FFMPEGMediaPlayer extends GLMediaPlayerImpl {
final boolean avResampleLoaded = FFMPEGDynamicLibraryBundleInfo.avResampleLoaded();
final VersionNumber swResampleVersion = FFMPEGDynamicLibraryBundleInfo.swResampleVersion;
final boolean swResampleLoaded = FFMPEGDynamicLibraryBundleInfo.swResampleLoaded();
if( DEBUG ) {
System.err.println("LIB_AV Codec : "+avCodecVersion+" [cc "+avCodecMajorVersionCC+"]");
System.err.println("LIB_AV Format : "+avFormatVersion+" [cc "+avFormatMajorVersionCC+"]");
System.err.println("LIB_AV Util : "+avUtilVersion+" [cc "+avUtilMajorVersionCC+"]");
System.err.println("LIB_AV Resample: "+avResampleVersion+" [cc "+avResampleMajorVersionCC+", loaded "+avResampleLoaded+"]");
System.err.println("LIB_SW Resample: "+swResampleVersion+" [cc "+swResampleMajorVersionCC+", loaded "+swResampleLoaded+"]");
System.err.println("LIB_AV Device : [loaded "+FFMPEGDynamicLibraryBundleInfo.avDeviceLoaded()+"]");
System.err.println("LIB_AV Class : "+(null!= natives ? natives.getClass().getSimpleName() : "n/a"));
}
libAVVersionGood = avCodecMajorVersionCC == avCodecVersion.getMajor() &&
avFormatMajorVersionCC == avFormatVersion.getMajor() &&
avUtilMajorVersionCC == avUtilVersion.getMajor() &&
Expand Down

0 comments on commit 8a032a2

Please sign in to comment.