Exemple #1
0
        public bool MightDrift(CMClock otherClock)
        {
            if (otherClock == null)
            {
                throw new ArgumentNullException("otherClock");
            }

            return(CMClockMightDrift(Handle, otherClock.Handle));
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #4
0
        public bool MightDrift(CMClock otherClock)
        {
            if (otherClock == null)
                throw new ArgumentNullException ("otherClock");

            return CMClockMightDrift (Handle, otherClock.Handle);
        }