public MusicPlayerStatus AddMidiRawDataEvent(double timestamp, MidiRawData rawData) { if (rawData == null) { throw new ArgumentNullException("rawData"); } var native = rawData.ToUnmanaged(); var r = MusicTrackNewMIDIRawDataEvent(handle, timestamp, native); Marshal.FreeHGlobal(native); return(r); }
public MusicPlayerStatus AddMidiRawDataEvent(double timestamp, MidiRawData rawData) { if (rawData is null) { ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(rawData)); } var native = rawData.ToUnmanaged(); var r = MusicTrackNewMIDIRawDataEvent(Handle, timestamp, native); Marshal.FreeHGlobal(native); return(r); }