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

Provide an easy way to use javax.sound to play audio clips

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • client-libs
    • None

      There's no non-deprecated easy way to simply play an audio clip in a supported format.

      javax.sound requires the application to write a lot of boiler-plate code
      The easiest is to use Applet's AudioClip, which is actually built on top of javax.sound
      But the java.applet package is deprecated for removal.

      We should surface the functionality somewhere else.
      Not sure where exactly, but probably somewhere under javax.sound

      This limitation was raised and discussed here :
      https://mail.openjdk.org/pipermail/client-libs-dev/2023-December/016735.html

            kizune Alexander Zuev
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: