-
Bug
-
Resolution: Fixed
-
P1
-
1.4.2, 5.0, 5.0u5, 6
-
b48
-
x86
-
windows_98, windows_2000, windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2128593 | 5.0u5 | Alex Menkov | P1 | Resolved | Fixed | b04 |
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows XP, 2000 professional - that I have tested on.
A DESCRIPTION OF THE PROBLEM :
I would like to re-open the bug 5070730. Its not fixed for short AU clips. I have a game website that depends on the using the asynchronous use of the Applet getAudioClip and AudioClip.play. This has worked fine for JVM 1.1 , 1.3 etc. But I have realised that in 1.5.0_02 (and 1.5.0, 1.4.x) it does not work correctly.
This is a regression.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use the applet as described in this case
Please retrieve the nock.au file from:
http://www.play3dpool.com/pool/nock.au
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
when you run the above applet (either in a browser or appletviewer) using say JDK 1.3 or early you will hear a many small "click" sounds very close together.
However if you use JDK1.5 to run the same applet you will hear only 1 click, or nothing, or sometimes a couple.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.applet.*;
import java.net.*;
/**
*
*
*/
public class SoundApplet extends java.applet.Applet {
public void start() {
try {
URL url = SoundApplet.class.getResource("/nock.au");
System.out.println("URL:"+url.toString());
AudioClip ac = getAudioClip(url);
for (int i = 1; i < 60; i++) {
try {
Thread.sleep(10);
} catch (InterruptedException e1) {
e1.printStackTrace();
}
ac.play();
}
Thread.sleep(1000);
} catch (Exception e) {
e.printStackTrace();
}
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
I have no workaround.
Release Regression From : 1.3.1
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
###@###.### 2005-04-06 17:49:13 GMT
- backported by
-
JDK-2128593 REGRESSION: BUG:5070730 is NOT fixed - short sounds do not play.
- Resolved
- duplicates
-
JDK-6300428 COMPATIBILITY-reg: Sound is not functioning in some Yahoo applet games
- Closed
-
JDK-6280653 COMPATIBILITY: GameHouse- Sound is not functioning in PileUp game applet
- Closed
-
JDK-6281258 COMPATIBILITY: Pogo.com Applets- Sound is not functioning properly
- Closed
-
JDK-6300433 COMPATIBILITY-reg: Sound is not functioning in some Pogo applet games
- Closed
-
JDK-5085008 Clip does not play WAV files
- Closed
- relates to
-
JDK-5070730 REGRESSION: play method audioclip
- Resolved
-
JDK-6233477 Regression: java.applet.Applet.play() method is not working on Tiger U2 B07. Sound will be crumpled.
- Closed