Ejemplo n.º 1
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);
        }
Ejemplo n.º 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;
		}