Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4912739
Votes 0
Synopsis SPEC: DataLine.Info.getFormats() should document NOT_SPECIFIED
Category java:classes_sound
Reported Against tiger
Release Fixed 1.5(tiger-b28)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 4945306
Submit Date 26-AUG-2003
Description
ataLine.Info.getFormats() should document NOT_SPECIFIED


DataLine.Info.getFormats() returns an array of audio formats that are supported by the data line. However, some lines support a very wide range or any value for some parameters of the audio format, like lines that support any sample rate from 10Hz to 200KHz. In such cases, the current implementation sets the respective parameter (and the dependent parameters, if any) to AudioSystem.NOT_SPECIFIED. 

The method's documentation should mention that fields in the audio format may be set to NOT_SPECIFIED and what it means.

In the long run, a consistent concept for specifying ranges should be added to the Java Sound API.


======================================================================
 xxxxx@xxxxx  2003-11-03
checked in fix
Work Around
N/A
Evaluation
 xxxxx@xxxxx  2003-08-26
	Fixing this helps reducing the confusion among developers where and when AudioSystem.NOT_SPECIFIED can be used.
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang