org.jivesoftware.smackx.jingle.media
Class PayloadType.Audio

java.lang.Object
  extended by org.jivesoftware.smackx.jingle.media.PayloadType
      extended by org.jivesoftware.smackx.jingle.media.PayloadType.Audio
Enclosing class:
PayloadType

public static class PayloadType.Audio
extends PayloadType

Audio payload type.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smackx.jingle.media.PayloadType
PayloadType.Audio
 
Field Summary
 
Fields inherited from class org.jivesoftware.smackx.jingle.media.PayloadType
INVALID_PT, MAX_FIXED_PT, NODENAME
 
Constructor Summary
PayloadType.Audio()
          Empty constructor.
PayloadType.Audio(int id, java.lang.String name)
          Constructor with Id and name
PayloadType.Audio(int id, java.lang.String name, int rate)
          Constructor with all the attributes of an Audio payload type
PayloadType.Audio(int id, java.lang.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
 
Method Summary
 boolean equals(java.lang.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.jingle.media.PayloadType
getChannels, getElementName, getId, getName, isNull, setChannels, setId, setName, toXML
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayloadType.Audio

public PayloadType.Audio(int id,
                         java.lang.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

PayloadType.Audio

public PayloadType.Audio(int id,
                         java.lang.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

PayloadType.Audio

public PayloadType.Audio()
Empty constructor.


PayloadType.Audio

public PayloadType.Audio(int id,
                         java.lang.String name)
Constructor with Id and name

Parameters:
id - the Id for the payload type
name - the name of the payload type

PayloadType.Audio

public PayloadType.Audio(PayloadType pt)
Copy constructor

Parameters:
pt - the other payload type

PayloadType.Audio

public PayloadType.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 class PayloadType

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class PayloadType