public static class PayloadType.Audio extends PayloadType
PayloadType.Audio
INVALID_PT, MAX_FIXED_PT, NODENAME
Constructor and Description |
---|
PayloadType.Audio()
Empty constructor.
|
PayloadType.Audio(int id,
String name)
Constructor with Id and name
|
PayloadType.Audio(int id,
String name,
int rate)
Constructor with all the attributes of an Audio payload type
|
PayloadType.Audio(int id,
String name,
int channels,
int rate)
Constructor with all the attributes of an Audio payload type
|
PayloadType.Audio(PayloadType.Audio pt)
Copy constructor
|
PayloadType.Audio(PayloadType pt)
Copy constructor
|
Modifier and Type | Method and 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.
|
getChannels, getChildAttributes, getElementName, getId, getName, isNull, setChannels, setId, setName, toXML
public PayloadType.Audio(int id, String name, int channels, int rate)
id
- The identifiername
- The name assigned to this payload typechannels
- The number of channelsrate
- The clock ratepublic PayloadType.Audio(int id, String name, int rate)
id
- The identifiername
- The name assigned to this payload typerate
- The clock ratepublic PayloadType.Audio()
public PayloadType.Audio(int id, String name)
id
- the Id for the payload typename
- the name of the payload typepublic PayloadType.Audio(PayloadType pt)
pt
- the other payload typepublic PayloadType.Audio(PayloadType.Audio pt)
pt
- the other payload typepublic int getClockRate()
public void setClockRate(int rate)
rate
- The sampling clockRatepublic int hashCode()
hashCode
in class PayloadType
public boolean equals(Object obj)
equals
in class PayloadType