diff options
author | Sven Gothel <[email protected]> | 2023-10-04 11:16:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-10-04 11:16:40 +0200 |
commit | edf181e8a75f41c7d7e8de5d65c51d66f01fd61c (patch) | |
tree | d99ed037ceb8eed91962d255515686e6390648bc /make/scripts | |
parent | 46a14783593f5e06125ad9b28e4a091e0ee4560e (diff) |
Bug 1473 - ALAudioSink: AV Synchronization Broken, Regression in-between JogAmp Version [2.4.0 - 2.5.0]
- Adopt to simplified AudioSink
- Add lastBufferedPTS and expose it
- Cleanup short* and perf*String() trace/debug presentations to simplify review
- Hence drop growBuffers()
- Set initial avgFrameDuration to latency, at least a good start
+++
dequeueBuffer(..):
- Pass releaseBufferCountReq directly, tangible only if wait == true,
have enqueueData(..) determine the wait and releaseBufferCountReq value.
- Drop dequeueBuffer(..) overload caller, simplifying code
- Don't change playingPTS(..) in overload caller, enqueueData(..) takes care of it
- Align DEBUG trace with enqueueData(..) to simplify review
- Otherwise no semnatic change in dequeueBuffer(..)
enqueueData(..):
- Dropped growBuffers()
- Show DEBUG trace before actual dequeueBuffer(..) to have meanigful output
- SOFT (no-wait) dequeueBuffer(..) triggers on 2/3rd full queue
- HARD (wait) dequeueBuffer(..) if queue is full
- Set playingPTS, either use
- old queue-tip (too old) and add (forward) 60% of queue-buffer time
- new queue-tail (too young), subtract (delay) 40% of queue-buffer time
Diffstat (limited to 'make/scripts')
-rwxr-xr-x | make/scripts/tests.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index 5342a22..a5369a0 100755 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -66,7 +66,7 @@ function jrun() { #D_ARGS="-Djogamp.debug=all" #D_ARGS="-Djogamp.debug.Bitstream" #D_ARGS="-Djogamp.debug.NativeLibrary=true -Djoal.debug=true" - #D_ARGS="-Djogamp.debug.AudioSink" + D_ARGS="-Djogamp.debug.AudioSink" #D_ARGS="-Djogamp.debug.AudioSink -Djoal.debug.AudioSink.trace" #D_ARGS="-Djoal.debug.AudioSink.trace" #D_ARGS="-Djoal.debug=all" @@ -107,8 +107,8 @@ function testnormal() { #testnormal com.jogamp.openal.test.manual.OpenALTest $* #testnormal com.jogamp.openal.test.manual.Sound3DTest $* #testnormal com.jogamp.openal.test.manual.Synth01AL $* -#testnormal com.jogamp.openal.test.manual.Synth02AL $* -testnormal com.jogamp.openal.test.manual.Synth02bAL $* +testnormal com.jogamp.openal.test.manual.Synth02AL $* +#testnormal com.jogamp.openal.test.manual.Synth02bAL $* #testnormal com.jogamp.openal.test.junit.ALVersionTest $* #testnormal com.jogamp.openal.test.junit.ALutWAVLoaderTest $* #testnormal com.jogamp.openal.test.junit.ALExtLoopbackDeviceSOFTTest $* |