Class PayloadType.Audio

java.lang.Object
org.jivesoftware.smackx.jingleold.media.PayloadType
org.jivesoftware.smackx.jingleold.media.PayloadType.Audio
Enclosing class:
PayloadType

public static final class PayloadType.Audio extends PayloadType
Audio payload type.
  • Constructor Details

    • Audio

      public Audio(int id, String name, int channels, int rate)
      Constructor with all the attributes of an Audio payload type.
      Parameters:
      id - The identifier
      name - The name assigned to this payload type
      channels - The number of channels
      rate - The clock rate
    • Audio

      public Audio(int id, String name, int rate)
      Constructor with all the attributes of an Audio payload type.
      Parameters:
      id - The identifier
      name - The name assigned to this payload type
      rate - The clock rate
    • Audio

      public Audio()
      Empty constructor.
    • Audio

      public Audio(int id, String name)
      Constructor with Id and name.
      Parameters:
      id - the Id for the payload type
      name - the name of the payload type
    • Audio

      public Audio(PayloadType pt)
      Copy constructor.
      Parameters:
      pt - the other payload type
    • Audio

      public Audio(PayloadType.Audio pt)
      Copy constructor.
      Parameters:
      pt - the other payload type
  • Method Details

    • getClockRate

      public int getClockRate()
      Get the sampling clockRate for a payload type.
      Returns:
      The sampling clockRate
    • setClockRate

      public void setClockRate(int rate)
      Set tha sampling clockRate for a payload type.
      Parameters:
      rate - The sampling clockRate
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PayloadType
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class PayloadType