JDK-4794189 : SPEC: javax_sound spec does not specify sound devices detecting
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Future Project
  • OS: generic
  • CPU: generic
  • Submitted: 2002-12-16
  • Updated: 2005-05-30
  • Resolved: 2005-01-22
Related Reports
Relates :  
Description

Name: dkR10031			Date: 12/16/2002



The J2SE 1.4 API specification proposes different sound 
resources for working with sound: mixer, sequencer,  synthesizer and 
other. But the specification does not specify how to obtain 
information about which hardware devices are installed on the 
system or how software entities are mapped by API to the hardware.

The specification proposes LineUnavailableException for indicating that a 
line cannot be opened because it is unavailable. But specification does 
not state what is the reason of unavailability: absence of the sound resource 
or something else. The sound resource can be used by other applications 
and it can be unavailable too.

The specification should provide methods for sound devices detecting,
or should provide means for detecting that sound resources are used by 
other application.

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

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

EVALUATION ###@###.### 2002-12-16 This bug aims at removing the overload of the LineUnavailableException and the IllegalArgumentException in the methods to retrieve and open lines. While it might be impossible to programmatically distinguish the reason why an existing device is not available (driver problem, in use by other application, in use by Java, etc.), Java Sound should provide better means to know in advance if it will be possible to retrieve a line or open it. Commit to Tiger. ###@###.### 2003-10-01 The current implementation fixes several bugs that led to inconsistent representation of hardware devices to Java Sound programs, i.e. a mixer will not return lines if it is installed incorrectly, or the lines will not offer formats if they do not work. However, some abstraction has to be done in order to make it possible to write portable programs. That's, after all, the reason to have one Java Sound API - to cover all devices on the market. I guess this bug needs some more discussion, so commit to dragon.
11-06-2004

PUBLIC COMMENTS Java Sound should provide a means to distinguish why a resource is not available.
10-06-2004