TrackEvent.asMetaEvent

  1. inout(MIDIEvent)* asMIDIEvent()
  2. inout(SysExEvent)* asSysExEvent()
  3. inout(MetaEvent)* asMetaEvent()
    struct TrackEvent
    inout return @nogc nothrow pure @safe
    inout(MetaEvent)*
    asMetaEvent
    ()

Return Value

Type: inout(MetaEvent)*

a pointer to the underlying MIDIEvent, SysExEvent or MetaEvent if the object is of that variety; null otherwise

Note: do not reassign the TrackEvent object while still having a reference to the object in the union.

Meta