IDirectMusicBuffer
This 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.
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 IDirectMusicPort::PlayBuffer or the IDirectMusicPort::Read method. The application is then free to reuse the buffer.
The methods of the IDirectMusicBuffer 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 LPDIRECTMUSICBUFFER type is defined as a pointer to the IDirectMusicBuffer interface.
typedef IDirectMusicBuffer *LPDIRECTMUSICBUFFER;
Requirements
OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusicc.h.
Link Library: Dmusic.lib.
See Also
IDirectMusicPort::PlayBuffer | IDirectMusicPort::Read
Last updated on Monday, April 12, 2004
© 1992-2002 Microsoft Corporation. All rights reserved.