RFR: 8308955: MediaPlayer/AudioClip skip data on seek/loop
Kevin Rushforth
kcr at openjdk.org
Tue Jan 23 19:58:38 UTC 2024
On Tue, 23 Jan 2024 03:13:11 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:
> This is regression from JDK-8262365. JDK-8262365 introduced support for hardware pause for audio device. For some reason we will skip ~500 ms of audio data after such pause. It is not noticeable for large audio files, but for anything small like sound effects 1-3 seconds long it is noticeable and makes short audio effects unusable without re-creating MediaPlayer after each playback. Fix/workaround is to disable hardware pause. I did not figure out why hardware pause skips audio data.
Looks good.
-------------
Marked as reviewed by kcr (Lead).
PR Review: https://git.openjdk.org/jfx/pull/1346#pullrequestreview-1839809111
More information about the openjfx-dev
mailing list