Ejemplo n.º 1
0
        public MusicPlayerStatus AddUserEvent(double timestamp, MusicEventUserData userData)
        {
            if (userData == null)
            {
                throw new ArgumentNullException("userData");
            }
            var ptr = userData.ToUnmanaged();
            var ret = MusicTrackNewUserEvent(handle, timestamp, ptr);

            Marshal.FreeHGlobal(ptr);
            return(ret);
        }
Ejemplo n.º 2
0
        public MusicPlayerStatus AddUserEvent(double timestamp, MusicEventUserData userData)
        {
            if (userData is null)
            {
                ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(userData));
            }
            var ptr = userData.ToUnmanaged();
            var ret = MusicTrackNewUserEvent(Handle, timestamp, ptr);

            Marshal.FreeHGlobal(ptr);
            return(ret);
        }