Integrated: 8308955: MediaPlayer/AudioClip skip data on seek/loop

Alexander Matveev almatvee at openjdk.org
Thu Jan 25 20:29:35 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.

This pull request has now been integrated.

Changeset: 359ffb97
Author:    Alexander Matveev <almatvee at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/359ffb97931e19c6e2a8b9a35f6fee3b44639bdc
Stats:     7 lines in 1 file changed: 7 ins; 0 del; 0 mod

8308955: MediaPlayer/AudioClip skip data on seek/loop

Reviewed-by: kcr, arapte

-------------

PR: https://git.openjdk.org/jfx/pull/1346


More information about the openjfx-dev mailing list