JDK-4516771 : Problems with applets: Freezing screen when playing sounds
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.1
  • Priority: P4
  • Status: Closed
  • Resolution: Future Project
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-10-19
  • Updated: 2005-05-30
  • Resolved: 2005-01-22
Related Reports
Relates :  
Relates :  
Description
Name: fb126949			Date: 10/18/2001


This bug is the 2nd part of bug 4507837, which has been integrated.

After having played sound clips many times in an applet, after a while playing a sound file takes a long time to begin and interrupts execution of current thread. It is estimated to be around 500ms, during which e.g. a game screen is frozen.


======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon
14-06-2004

PUBLIC COMMENTS Problems with applets: Freezing screen when playing sounds
10-06-2004

EVALUATION ###@###.### 2002-10-31 The problem seems to be this: when an applet starts sounds in an event handler, it blocks the event handler thread until the start() or loop() method returns. This can be circumvented by dispatching the start(), loop() and stop() methods to a separate thread which will execute the commands. This will, however, increase the delay and is therefore not nice for games. The other possibility is to optimize AudioSystem's performance, especially with respect to service provider lookup. See 4666881. Commit to tiger. ###@###.### 2003-10-14 Tiger now caches providers - that may help performance. But the description above seems to not be deterministic when the problem starts. Should be fixed with Tiger's DirectAudioDevices, too. ###@###.### 2003-10-14 Committing to dragon. ###@###.### 2003-12-05
14-10-2003