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

			return CMClockMightDrift (Handle, otherClock.Handle);
		}
예제 #2
0
        public bool MightDrift(CMClock otherClock)
        {
            if (otherClock == null)
            {
                throw new ArgumentNullException("otherClock");
            }

            return(CMClockMightDrift(Handle, otherClock.Handle));
        }
예제 #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);
        }
예제 #4
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);
		}