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

Pan FloatControl - Value Not Equal To Value Set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs


      01. Get a Pan Control from a line.
      02. Get minimum value, maximum value, and precision for the Pan Control.
      03. Set up a loop that goes from min value to max value by precision.
      04. Each time through the loop, set, then get the value of the Pan Control.
      05. Verify that the value returned by getValue equals the value set with setValue.

      Partial output from this test follows:

      theFloatControlMax: 1.0
      theFloatControlMin: -1.0
      theFloatControlPrecision: 0.015625
      _______________________________________
      thePanValueSet: -1.0, thePanValueGot: -1.0 - EQUAL
      thePanValueSet: -0.984375, thePanValueGot: -0.98412704 - NOT EQUAL
      thePanValueSet: -0.96875, thePanValueGot: -0.968254 - NOT EQUAL
      _______________________________________
      The output continues like this.
      Notice that the second attempted setting is: Minimum + Precision
      Note also that although this test fails programmatically, it appears to be doing the right thing sonically. i.e. the sound pans gradually from one speaker to the other.

      Code and Complete output is attached.

            fbomerssunw Florian Bomers (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: