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

RFE: It is impossible to play a sound other than from a URL.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs



      Name: rm29839 Date: 01/21/98


      If I write a sound file to a JAR, I can't play it back. Note that I can't serialize it, but I can place it directly in the JAR file.
      However, since no URL can point inside a JAR file, and the only way to access sounds is via getAudioClip(URL, [name])
      I can't play a sound in an applet derived from a JAR.

      The API needs an equivalent to Toolkit.createImage(byte[] imagedata) that would do for audio what that call does for GIF and JPEG.

      Please create Toolkit.createAudioClip(byte[] data)
      so we can create applications with embedded sounds.
      (Review ID: 23518)
      ======================================================================

            fbomerssunw Florian Bomers (Inactive)
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: