Exemplo n.º 1
0
        public bool MightDrift(CMClock otherClock)
        {
            if (otherClock == null)
            {
                throw new ArgumentNullException("otherClock");
            }

            return(CMClockMightDrift(Handle, otherClock.Handle));
        }
Exemplo n.º 2
0
        public CMTimebase(CMClock masterClock)
        {
            if (masterClock == null)
            {
                throw new ArgumentNullException("masterClock");
            }

            var error = CMTimebaseCreateWithMasterClock(IntPtr.Zero, masterClock.Handle, out handle);

            if (error != CMTimebaseError.None)
            {
                throw new ArgumentException(error.ToString());
            }

            CFObject.CFRetain(Handle);
        }
Exemplo n.º 3
0
        public CMTimebase(CMClock masterClock)
        {
            if (masterClock == null)
                throw new ArgumentNullException ("masterClock");

            var error = CMTimebaseCreateWithMasterClock (IntPtr.Zero, masterClock.Handle, out handle);
            if (error != CMTimebaseError.None)
                throw new ArgumentException (error.ToString ());

            CFObject.CFRetain (Handle);
        }
Exemplo n.º 4
0
        public bool MightDrift(CMClock otherClock)
        {
            if (otherClock == null)
                throw new ArgumentNullException ("otherClock");

            return CMClockMightDrift (Handle, otherClock.Handle);
        }