Interface IOutputEndpoint
Represents an abstract output MIDI endpoint. More info in the
Devices and
Output endpoint articles.
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public interface IOutputEndpoint : IDisposable
Methods
PrepareForEventsSending()
Prepares output MIDI endpoint 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 endpoint automatically. But it can take some time so you may decide
to call PrepareForEventsSending() before working with endpoint.
SendEvent(MidiEvent)
Sends a MIDI event to the current output endpoint.
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> |