Microsoft DirectX 8.0 (C++)

IDirectMusicBuffer8

The IDirectMusicBuffer8 interface represents a buffer containing time stamped data (typically in the form of MIDI messages) to be sequenced by a port. Unlike a segment, the buffer contains a small amount of data (typically less than 200 milliseconds) over which the application has control at event granularity.

IDirectMusicBuffer8 is a type definition for IDirectMusicBuffer. The two interface names are interchangeable.

Unless your application is doing its own sequencing, you do not need to use the methods of this interface.

Buffer objects are completely independent of port objects until the buffer is passed to the port by a call to the IDirectMusicPort8::PlayBuffer or the IDirectMusicPort8::Read method. The application is then free to reuse the buffer.

The methods of the IDirectMusicBuffer8 interface can be organized in the following groups:

Data Flush
  GetNextEvent
  GetRawBufferPtr
  PackStructured
  PackUnstructured
  ResetReadPtr
Parameters GetBufferFormat
  GetMaxBytes
  GetUsedBytes
  SetUsedBytes
Time GetStartTime
  SetStartTime
  TotalTime

All COM interfaces inherit the IUnknown interface methods. This interface supports the following three methods:

IUnknown AddRef
  QueryInterface
  Release

The LPDIRECTMUSICBUFFER8 type is defined as a pointer to the IDirectMusicBuffer8 interface.

typedef IDirectMusicBuffer8 *LPDIRECTMUSICBUFFER8;

Requirements

  Header: Declared in dmusicc.h.