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);
        }
Beispiel #2
0
		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;
		}