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

AudioClip's stop() method is slow.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u15
    • javafx
    • JDK 1.7.0_21.
      2012 MacBook Pro with 2.6GHz i7 processor and 8GB RAM, running OS X 10.8.3.

      Calling stop() on a playing AudioClip takes a long time -- roughly 20-30 milliseconds, enough to cause a visual stutter in an app that updates at 60 fps (via an AnimationTimer).

      There is no delay or lag if an AudioClip finishes playing on its own.

      I have created a test app which measures the lag:
      http://electronzen.com/AudioClipTest/

      Launch the app. Press Play to start the clip. Press Stop when the clip is playing to see the frame time delta jump.

            almatvee Alexander Matveev
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: