jmartine_1026 at yahoo.com
Tue Sep 11 17:49:39 PDT 2012
> 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.
http://javafx-jira.kenai.com/browse/RT-24912 I attached a netbeans project with test code.
> What format of sound file are you using for the clips and what OS and architecture are you running?
mp3 and wav. Win7, Java7u6b18, netbeans 7.2 beta. Going to upgrade Java to see if that has any changes.
From: David DeHaven <david.dehaven at oracle.com>
To: Jose Martinez <jmartine_1026 at yahoo.com>
Cc: openjfx mailing list <openjfx-dev at openjdk.java.net>
Sent: Tuesday, September 11, 2012 4:18 PM
Subject: Re: AudioClip progress
> 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.
More information about the openjfx-dev