public class AudioLevelMap
extends java.lang.Object
Constructor and Description |
---|
AudioLevelMap() |
Modifier and Type | Method and Description |
---|---|
int |
getLevel(long csrc)
Returns the audio level of the specified csrc id or -1
if csrc is not currently registered in this map.
|
void |
putLevel(long csrc,
int level)
If this map already contains csrc this method updates its level,
otherwise we add a new entry mapping csrc to level.
|
boolean |
removeLevel(long csrc)
Removes csrc and its mapped level from this map.
|
public void putLevel(long csrc, int level)
csrc
- the CSRC key that we'd like to add/update.level
- the new audio level for the specified csrc.public boolean removeLevel(long csrc)
csrc
- the CSRC ID that we'd like to remove from this map.public int getLevel(long csrc)
csrc
- the CSRC ID whose level we'd like to obtain.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.