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

RFE: Add Properties to AudioFormat

    Details

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

      Description

      Name: fb126949 Date: 09/20/2003


      This RFE is a follow-up to 4666845: Add Properties to AudioFileFormat and MidiFileFormat

      The following methods should be added to AudioFormat:

      public AudioFormat(Encoding encoding, float sampleRate,
                         int sampleSizeInBits, int channels,
                         int frameSize, float frameRate,
                         boolean bigEndian, Map<String, Object> properties);
      Map<String,Object> AudioFormat.properties()
      Object AudioFormat.getProperty(String key)

      The current AudioFormat class makes it impossible to account for non-trivial formats, like MPEG-I layer 3 (mp3), which has more format qualifiers than the ones provided by AudioFormat. So, as an example, an mp3 file might include these properties:
      key="quality", value=Integer(5)
      key="bitrate", value=Integer(128)
      key="VBR", value=Boolean(false)
      etc.
      It is up to the implementor to properly document the keys and their values.


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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: