https://issues.apache.org/bugzilla/show_bug.cgi?id=48637
--- Comment #2 from Ed Brannin <[email protected]> 2010-01-29 07:44:31 UTC --- Created an attachment (id=24905) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24905) Patch against 1.8.0RC1 to fix both issues (and fix some comment spelling) I downloaded the 1.8.0RC1 source distribution and fixed both issues this morning. === In org.apache.tools.ant.taskdefs.optional.sound.AntSoundPlayer.playClip(Clip, int): There was a race condition between clip.loop() and clip.isRunning() where the system could exit before the clip started. I don't like how this takes one busy-wait and turns it into two busy-waits, and am going to replace them with a do/try/sleep loop in a minute. I'm uploading this patch now in case you prefer this version. In org.apache.tools.ant.taskdefs.optional.sound.AntSoundPlayer.playClip(Clip, long): clip.loop(Clip.LOOP_CONTINUOUSLY) and the ensuing Thread.sleep(duration) worked fine, but no one ever called clip.stop() at the end. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
