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.
-
-
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
Constructors Constructor Description Audio()
Empty constructor.Audio(int id, String name)
Constructor with Id and name.Audio(int id, String name, int rate)
Constructor with all the attributes of an Audio payload type.Audio(int id, String name, int channels, int rate)
Constructor with all the attributes of an Audio payload type.Audio(PayloadType pt)
Copy constructor.Audio(PayloadType.Audio pt)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getClockRate()
Get the sampling clockRate for a payload type.int
hashCode()
void
setClockRate(int rate)
Set tha sampling clockRate for a playload type.-
Methods inherited from class org.jivesoftware.smackx.jingleold.media.PayloadType
getChannels, getChildAttributes, getElementName, getId, getName, isNull, setChannels, setId, setName, toXML
-
-
-
-
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 identifiername
- The name assigned to this payload typechannels
- The number of channelsrate
- 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 identifiername
- The name assigned to this payload typerate
- 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 typename
- 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 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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPayloadType
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classPayloadType
-
-