AudioClip progress
David DeHaven
david.dehaven at oracle.com
Tue Sep 11 13:18:21 PDT 2012
> One of the issues I am having now is delayed audio when I call play(). Usually this happens on the first call to play() and randomly on subsequent. The problem lessens if I set priority to 1, but still it happens on the first call. I am trying to reproduce on test code. Sometimes the delay is a second or more.
Wow, that should never be the case. Please file an issue for that and if you can provide a reproducible test case, include a clip that you're using if at all possible.
What format of sound file are you using for the clips and what OS and architecture are you running?
> In my app the user can click on a button, the nodes on the screen change when the button is clicked. I filter for mouse_clicked and play the audio before the eventHandler catches the event and changes the screen. So I was hoping the audio would get a head start over the screen changes, but still the delay remains. I am not asking for a fix or anything but maybe some direction on where I should search...... BTW, I posted this question on OTN first before bringing up here.
It sounds like you're doing the right thing programmatically, it shouldn't have that kind of latency.
-DrD-
More information about the openjfx-dev
mailing list