Interface IOutputDevice
Represents an abstract output MIDI device. More info in the
Devices and
Output device articles.
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public interface IOutputDevice : IDisposable
Methods
PrepareForEventsSending()
Prepares output MIDI device for sending events to it allocating necessary
resources.
Declaration
void PrepareForEventsSending()
Remarks
It is not needed to call this method before actual MIDI data
sending since first call of SendEvent(MidiEvent) will prepare
the device automatically. But it can take some time so you may decide
to call PrepareForEventsSending() before working with device.
SendEvent(MidiEvent)
Sends a MIDI event to the current output device.
Declaration
void SendEvent(MidiEvent midiEvent)
Parameters
Type | Name | Description |
---|---|---|
MidiEvent | midiEvent | MIDI event to send. |
Events
EventSent
Occurs when a MIDI event is sent.
Declaration
event EventHandler<MidiEventSentEventArgs> EventSent
Event Type
Type | Description |
---|---|
EventHandler<MidiEventSentEventArgs> |