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.
从类 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()