AudioClip's stop() method is slow.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7u15
    • Component/s: javafx
    • Environment:

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: