Package org.robovm.apple.coremedia
Class CMClock
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.coremedia.CMClockOrTimebase
-
- org.robovm.apple.coremedia.CMClock
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CMClock extends CMClockOrTimebase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CMClock.CMClockPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.coremedia.CMClockOrTimebase
CMClockOrTimebase.CMClockOrTimebasePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CMClock()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static long
convertHostTimeToSystemUnits(CMTime hostTime)
static CMClock
createAudioClock()
static CMClock
createAudioClock(CFAllocator allocator)
protected static OSStatus
createAudioClock0(CFAllocator allocator, CMClock.CMClockPtr clockOut)
static CMTime
createHostTimeFromSystemUnits(long hostTime)
CMTime
getAnchorReferenceTime()
CMTime
getAnchorTime()
protected OSStatus
getAnchorTime0(CMTime.CMTimePtr clockTimeOut, CMTime.CMTimePtr referenceClockTimeOut)
static long
getClassTypeID()
static CMClock
getHostTimeClock()
CMTime
getTime()
void
invalidate()
boolean
mightDrift(CMClock otherClock)
-
Methods inherited from class org.robovm.apple.coremedia.CMClockOrTimebase
convertTime, convertTime, getRelativeAnchorTime, getRelativeRate, getRelativeRateAndAnchorTime0, mightDrift
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
createAudioClock
public static CMClock createAudioClock() throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 6.0 and later.
-
createAudioClock
public static CMClock createAudioClock(CFAllocator allocator) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 6.0 and later.
-
getAnchorTime
public CMTime getAnchorTime() throws OSStatusException
- Overrides:
getAnchorTime
in classCMClockOrTimebase
- Throws:
OSStatusException
- Since:
- Available in iOS 6.0 and later.
-
getAnchorReferenceTime
public CMTime getAnchorReferenceTime() throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 6.0 and later.
-
getClassTypeID
public static long getClassTypeID()
- Since:
- Available in iOS 6.0 and later.
-
getHostTimeClock
public static CMClock getHostTimeClock()
- Since:
- Available in iOS 6.0 and later.
-
convertHostTimeToSystemUnits
public static long convertHostTimeToSystemUnits(CMTime hostTime)
- Since:
- Available in iOS 6.0 and later.
-
createHostTimeFromSystemUnits
public static CMTime createHostTimeFromSystemUnits(long hostTime)
- Since:
- Available in iOS 6.0 and later.
-
getTime
public CMTime getTime()
- Overrides:
getTime
in classCMClockOrTimebase
- Since:
- Available in iOS 6.0 and later.
-
getAnchorTime0
protected OSStatus getAnchorTime0(CMTime.CMTimePtr clockTimeOut, CMTime.CMTimePtr referenceClockTimeOut)
- Since:
- Available in iOS 6.0 and later.
-
mightDrift
public boolean mightDrift(CMClock otherClock)
- Since:
- Available in iOS 6.0 and later.
-
invalidate
public void invalidate()
- Since:
- Available in iOS 6.0 and later.
-
createAudioClock0
protected static OSStatus createAudioClock0(CFAllocator allocator, CMClock.CMClockPtr clockOut)
- Since:
- Available in iOS 6.0 and later.
-
-