public static class PayloadType.Audio extends PayloadType
PayloadType.Audio
INVALID_PT, MAX_FIXED_PT, NODENAME
Constructor and 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.Audio pt)
Copy constructor.
|
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 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 Audio(int id, String name, int rate)
id
- The identifiername
- The name assigned to this payload typerate
- The clock ratepublic Audio()
public Audio(int id, String name)
id
- the Id for the payload typename
- the name of the payload typepublic Audio(PayloadType pt)
pt
- the other payload typepublic 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