com.sun.media
类 MediaTimeBase

java.lang.Object
  继承者 com.sun.media.MediaTimeBase
所有已实现的接口:
TimeBase

public abstract class MediaTimeBase
extends java.lang.Object
implements TimeBase

This is the abstract base class to create a time base out of the media time of a component. e.g., this can be used to generate a time base from an audio device with reports time ticks as samples are played. A TimeBase ticks even when the media has stopped. This class takes care of that by internally maintaining a system time base that takes over when the media has ended. A TimeBase needs to be monotonically increasing. If the media time is set or wrapped around, this class will takes care of that.


构造方法摘要
MediaTimeBase()
           
 
方法摘要
abstract  long getMediaTime()
           
 long getNanoseconds()
          Get the current time of the TimeBase specified in nanoseconds.
 Time getTime()
          Get the current time of this TimeBase.
 void mediaStarted()
           
 void mediaStopped()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MediaTimeBase

public MediaTimeBase()
方法详细信息

getTime

public Time getTime()
从接口 TimeBase 复制的描述
Get the current time of this TimeBase.

指定者:
接口 TimeBase 中的 getTime
返回:
the current TimeBase time.

getNanoseconds

public long getNanoseconds()
从接口 TimeBase 复制的描述
Get the current time of the TimeBase specified in nanoseconds.

指定者:
接口 TimeBase 中的 getNanoseconds
返回:
the current TimeBase time in nanoseocnds.

getMediaTime

public abstract long getMediaTime()

mediaStarted

public void mediaStarted()

mediaStopped

public void mediaStopped()