org.mobicents.media.server.impl.rtp.clock
Class AudioClock

java.lang.Object
  extended by org.mobicents.media.server.impl.rtp.RtpClock
      extended by org.mobicents.media.server.impl.rtp.clock.AudioClock

public class AudioClock
extends RtpClock

Author:
kulikov

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.rtp.RtpClock
now
 
Constructor Summary
AudioClock()
           
 
Method Summary
 long getTime(long timestamp)
          Returns the time in milliseconds
 long getTimestamp(long time)
          Calculates RTP timestamp
 void setFormat(org.mobicents.media.Format format)
           
 
Methods inherited from class org.mobicents.media.server.impl.rtp.RtpClock
getFormat, isSynchronized, now, reset, synchronize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioClock

public AudioClock()
Method Detail

setFormat

public void setFormat(org.mobicents.media.Format format)
Overrides:
setFormat in class RtpClock

getTime

public long getTime(long timestamp)
Description copied from class: RtpClock
Returns the time in milliseconds

Specified by:
getTime in class RtpClock
Parameters:
timestamp - the rtp timestamp
Returns:
the time in milliseconds

getTimestamp

public long getTimestamp(long time)
Description copied from class: RtpClock
Calculates RTP timestamp

Specified by:
getTimestamp in class RtpClock
Parameters:
time - the time in milliseconds
Returns:
rtp timestamp.


Copyright © 2010. All Rights Reserved.