United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4304737 SourceDataLine will not restart after it has been close()'ed, open()'ed
JDK-4304737 : SourceDataLine will not restart after it has been close()'ed, open()'ed

Details
Type:
Bug
Submit Date:
2000-01-14
Status:
Resolved
Updated Date:
2002-10-16
Project Name:
JDK
Resolved Date:
2002-10-16
Component:
client-libs
OS:
generic
Sub-Component:
javax.sound
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.3.0
Fixed Versions:
1.4.2 (mantis)

Related Reports

Sub Tasks

Description
I am attaching a test application that demonstrates this problem.

> java JavaSoundStreamPlayer

Load a sampled audio file, then try this sequence:
- Open
- Start (sound starts playing)
- Stop  (sound stops)
- Close
- Open
- Start (no sound is heard)

Querying Status shows that the SourceDataLine being used returns
isOpen()    - true
isRunning() - false
isActive()  - false
after Start is called the second time.

                                    

Comments
EVALUATION

###@###.### 2000-01-13

This is serious, but too late to get a fix into Kestrel RC1.  Committing this to Merlin for now.

michael.bundschuh@Eng 2000-08-25

	No resource to fix for ladybird. Committing for merlin.


###@###.### 2002-07-18
	Verified the existence of the bug. The SourceDataLine should throw LineUnavailableException, as it is stated in the open method: "Note that some lines, once closed, cannot be reopened. Attempts to reopen such a line will always result in a LineUnavailableException."


###@###.### 2002-07-18
	Found the problem in MixerSourceLine, the implStarted variable wasn't reset to false upon close(). Fixed for mantis.
                                     
2002-07-18
PUBLIC COMMENTS

SourceDataLine will not restart after it has been close()'ed, open()'ed
                                     
2004-06-10
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b04


                                     
2004-06-14



Hardware and Software, Engineered to Work Together