DMUS_EVENTHEADER

The DMUS_EVENTHEADER structure precedes and describes an event in a port buffer.

typedef struct _DMUS_EVENTHEADER {
    DWORD           cbEvent;
    DWORD           dwChannelGroup;
    REFERENCE_TIME  rtDelta;
    DWORD           dwFlags;
} DMUS_EVENTHEADER, *LPDMUS_EVENTHEADER;
 

Members

cbEvent
Number of bytes in event.
dwChannelGroup
Group to which the event belongs.
rtDelta
Offset from start time of buffer.
dwFlags
Set to DMUS_EVENT_STRUCTURED if the event is parseable MIDI data.

Remarks

Pshpack4.h is included before the declaration of this structure to turn off automatic alignment of structures, so that the data immediately follows the header. (For more information, see the comments in Pshpack4.h.) Poppack.h is then included to turn alignment back on, and the entire structure (header plus event) is padded to an eight-byte boundary.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusicc.h.

See Also

IDirectMusicBuffer::GetNextEvent, IDirectMusicBuffer::PackStructured, IDirectMusicBuffer::PackUnstructured