mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
New Codec added
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7383 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
244882cc16
commit
68901d0890
5 changed files with 24 additions and 7 deletions
|
@ -138,7 +138,8 @@ public class PayloadType {
|
|||
public boolean isNull() {
|
||||
if (getId() == INVALID_PT) {
|
||||
return true;
|
||||
} else if (getName() == null) {
|
||||
}
|
||||
else if (getName() == null) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -187,7 +188,8 @@ public class PayloadType {
|
|||
if (other.getName() != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!getName().equals(other.getName())) {
|
||||
}
|
||||
else if (!getName().equals(other.getName())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -199,6 +201,7 @@ public class PayloadType {
|
|||
* Audio payload type.
|
||||
*/
|
||||
public static class Audio extends PayloadType {
|
||||
|
||||
private int clockRate;
|
||||
|
||||
/**
|
||||
|
@ -214,6 +217,18 @@ public class PayloadType {
|
|||
clockRate = rate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor with all the attributes of an Audio payload type
|
||||
*
|
||||
* @param id The identifier
|
||||
* @param name The name assigned to this payload type
|
||||
* @param rate The clock rate
|
||||
*/
|
||||
public Audio(int id, String name, int rate) {
|
||||
super(id, name);
|
||||
clockRate = rate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Empty constructor.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue