Class AudioParamDescriptor

java.lang.Object
com.codename1.media.audio.AudioParamDescriptor

public final class AudioParamDescriptor extends Object
Declares one AudioParam of an AudioProcessorNode, the Web Audio AudioParamDescriptor.
  • Constructor Details

    • AudioParamDescriptor

      public AudioParamDescriptor(String name, float defaultValue)

      An audio rate parameter with no range.

      Parameters
      • name: the parameter's name

      • defaultValue: its initial value

    • AudioParamDescriptor

      public AudioParamDescriptor(String name, float defaultValue, float minValue, float maxValue, AutomationRate rate)

      A parameter with a range and a rate.

      Parameters
      • name: the parameter's name

      • defaultValue: its initial value

      • minValue: the lowest value it takes

      • maxValue: the highest value it takes

      • rate: audio or control rate

  • Method Details

    • getName

      public String getName()
      Returns

      the name

    • getDefaultValue

      public float getDefaultValue()
      Returns

      the initial value

    • getMinValue

      public float getMinValue()
      Returns

      the lowest value

    • getMaxValue

      public float getMaxValue()
      Returns

      the highest value

    • getAutomationRate

      public AutomationRate getAutomationRate()
      Returns

      the automation rate