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); }
extern static /* OSStatus */ MusicPlayerStatus MusicSequenceFileCreateData(/* MusicSequence */ IntPtr inSequence, MusicSequenceFileTypeID inFileType, MusicSequenceFileFlags inFlags, /* SInt16 */ ushort resolution, /* CFDataRef* */ out IntPtr outData);
// 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)); }
extern static /* OSStatus */ MusicPlayerStatus MusicSequenceFileCreate(/* MusicSequence */ IntPtr inSequence, /* CFURLRef */ IntPtr inFileRef, MusicSequenceFileTypeID inFileType, MusicSequenceFileFlags inFlags, /* SInt16 */ ushort resolution);
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)); }
// 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; }
extern static /* OSStatus */ MusicPlayerStatus MusicSequenceFileCreateData (/* MusicSequence */ IntPtr inSequence, MusicSequenceFileTypeID inFileType, MusicSequenceFileFlags inFlags, /* SInt16 */ ushort resolution, /* CFDataRef* */ out IntPtr outData);
// 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); }
extern static /* OSStatus */ MusicPlayerStatus MusicSequenceFileCreate (/* MusicSequence */ IntPtr inSequence, /* CFURLRef */ IntPtr inFileRef, MusicSequenceFileTypeID inFileType, MusicSequenceFileFlags inFlags, /* SInt16 */ ushort resolution);