Esempio n. 1
0
        protected override void OnUnprepareBuffer(MidiBufferStream buffer)
        {
            Check.IfArgumentNull(buffer, "buffer");

            int result = NativeMethods.midiOutUnprepareHeader(
                MidiPort.MidiSafeHandle, buffer.ToIntPtr(), (uint)MemoryUtil.SizeOfMidiHeader);

            MidiOutPortBase.ThrowIfError(result);
        }
Esempio n. 2
0
 /// <summary>
 /// For derived classes only.
 /// </summary>
 /// <param name="port">A midi port base class.</param>
 internal MidiOutBufferManager(MidiOutPortBase port)
     : base(port, FileAccess.ReadWrite)
 {
 }