-
Bug
-
Resolution: Fixed
-
P4
-
1.0, 1.3.0, 1.3.1, 1.4.0
-
hopper
-
x86
-
solaris_8
-
Verified
In the following description, although "Clip" is discussed, it should be understood that the problems described here for Clip apply to "SourceDataLine" & "Sequencer" as well
The IA platform has a Java Sound bug not found on other platforms.
When running code that plays a Clip/Soundfile/Sequence...
01: The Clip is started using play or loop
02: Now if you invoke the method "isRunning()" "true" is returned
03: No sound is heard
04: If your code is waiting for a LineEvent, e.g. "STOP" to terminate execution as most developers would, your code will run endlessly.
To delve a bit deeper, I added some code to get a clue as to what might be happening.
After starting the Clip, I repeatedly call getMicrosecondPosition().
What I found was, under normal circumstances, (e.g. on Solaris, or Windows), the value that is returned continues to increase until the Clip has finished. On IA however, the value is always zero.
It seems that there are probably a few different problems here:
01. First off the clip is not playing, or is inaudible
02. The second problem is that "isRunning()" returns true which seems wrong because...
03. "getMicrosecondPosition()" continually returns zero
04. Your code will never receive the events that signal when playing has completed. If your code relies on these events to know when to stop or proceed or quit you're in trouble
--------------------------------
test case 034, 060 passed in IA platform.
###@###.### 2002-07-17
- duplicates
-
JDK-4400938 No audible sound output on solaris x86
-
- Closed
-