Class PayloadType.Audio

    • Constructor Detail

      • 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
    • Method Detail

      • 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 playload type.
        Parameters:
        rate - The sampling clockRate