Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4912739

SPEC: DataLine.Info.getFormats() should document NOT_SPECIFIED

    Details

    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      generic
    • OS:
      generic

      Description

      Name: fb126949 Date: 08/26/2003


      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.


      ======================================================================
      ###@###.### 2003-11-03
      checked in fix

        Attachments

          Activity

            People

            • Assignee:
              kpsmith Kevin Smith (Inactive)
              Reporter:
              fbomerssunw Florian Bomers (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: