Class PayloadType.Audio
java.lang.Object
org.jivesoftware.smackx.jingleold.media.PayloadType
org.jivesoftware.smackx.jingleold.media.PayloadType.Audio
- Enclosing class:
PayloadType
Audio payload type.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smackx.jingleold.media.PayloadType
PayloadType.Audio -
Field Summary
Fields inherited from class org.jivesoftware.smackx.jingleold.media.PayloadType
INVALID_PT, MAX_FIXED_PT, NODENAME -
Constructor Summary
ConstructorsConstructorDescriptionAudio()Empty constructor.Constructor with Id and name.Constructor with all the attributes of an Audio payload type.Constructor with all the attributes of an Audio payload type.Audio(PayloadType pt) Copy constructor.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the sampling clockRate for a payload type.inthashCode()voidsetClockRate(int rate) Set tha sampling clockRate for a payload type.Methods inherited from class org.jivesoftware.smackx.jingleold.media.PayloadType
getChannels, getChildAttributes, getElementName, getId, getName, isNull, setChannels, setId, setName, toXML
-
Constructor Details
-
Audio
Constructor with all the attributes of an Audio payload type.- Parameters:
id- The identifiername- The name assigned to this payload typechannels- The number of channelsrate- The clock rate
-
Audio
Constructor with all the attributes of an Audio payload type.- Parameters:
id- The identifiername- The name assigned to this payload typerate- The clock rate
-
Audio
public Audio()Empty constructor. -
Audio
Constructor with Id and name.- Parameters:
id- the Id for the payload typename- the name of the payload type
-
Audio
Copy constructor.- Parameters:
pt- the other payload type
-
Audio
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:
hashCodein classPayloadType
-
equals
- Overrides:
equalsin classPayloadType
-