Example #1
0
 public NSData?CreateData(MusicSequenceFileTypeID fileType, MusicSequenceFileFlags flags = 0, ushort resolution = 0)
 {
     if (MusicSequenceFileCreateData(Handle, fileType, flags, resolution, out var theData) == MusicPlayerStatus.Success)
     {
         return(Runtime.GetNSObject <NSData> (theData));
     }
     return(null);
 }
Example #2
0
 extern static /* OSStatus */ MusicPlayerStatus MusicSequenceFileCreateData(/* MusicSequence */ IntPtr inSequence, MusicSequenceFileTypeID inFileType, MusicSequenceFileFlags inFlags, /* SInt16 */ ushort resolution, /* CFDataRef* */ out IntPtr outData);
Example #3
0
        // note: resolution should be short instead of ushort
        public MusicPlayerStatus CreateFile(NSUrl url, MusicSequenceFileTypeID fileType, MusicSequenceFileFlags flags = 0, ushort resolution = 0)
        {
            if (url == null)
            {
                throw new ArgumentNullException("url");
            }

            return(MusicSequenceFileCreate(handle, url.Handle, fileType, flags, resolution));
        }
Example #4
0
 extern static /* OSStatus */ MusicPlayerStatus MusicSequenceFileCreate(/* MusicSequence */ IntPtr inSequence, /* CFURLRef */ IntPtr inFileRef, MusicSequenceFileTypeID inFileType, MusicSequenceFileFlags inFlags, /* SInt16 */ ushort resolution);
Example #5
0
        public MusicPlayerStatus CreateFile(NSUrl url, MusicSequenceFileTypeID fileType, MusicSequenceFileFlags flags = 0, ushort resolution = 0)
        {
            if (url is null)
            {
                ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(url));
            }

            return(MusicSequenceFileCreate(Handle, url.Handle, fileType, flags, resolution));
        }
Example #6
0
		// note: resolution should be short instead of ushort
		public NSData CreateData (MusicSequenceFileTypeID fileType, MusicSequenceFileFlags flags = 0, ushort resolution = 0)
		{
			IntPtr theData;
			if (MusicSequenceFileCreateData (handle, fileType, flags, resolution, out theData) == MusicPlayerStatus.Success)
				return Runtime.GetNSObject<NSData> (theData);
			return null;
		}
Example #7
0
		extern static /* OSStatus */ MusicPlayerStatus MusicSequenceFileCreateData (/* MusicSequence */ IntPtr inSequence, MusicSequenceFileTypeID inFileType, MusicSequenceFileFlags inFlags, /* SInt16 */ ushort resolution, /* CFDataRef* */ out IntPtr outData);
Example #8
0
		// note: resolution should be short instead of ushort
		public MusicPlayerStatus CreateFile (NSUrl url, MusicSequenceFileTypeID fileType, MusicSequenceFileFlags flags = 0, ushort resolution = 0)
		{
			if (url == null)
				throw new ArgumentNullException ("url");
			
			return MusicSequenceFileCreate (handle, url.Handle, fileType, flags, resolution);
		}
Example #9
0
		extern static /* OSStatus */ MusicPlayerStatus MusicSequenceFileCreate (/* MusicSequence */ IntPtr inSequence, /* CFURLRef */ IntPtr inFileRef, MusicSequenceFileTypeID inFileType, MusicSequenceFileFlags inFlags, /* SInt16 */ ushort resolution);