Microsoft DirectX 8.0 (C++) |
Creates a DirectMusicBuffer object to hold music messages being sequenced to the port. Most applications do not need to call this method directly because buffer management is handled by the performance when a port is added.
HRESULT CreateMusicBuffer( LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER *ppBuffer, LPUNKNOWN pUnkOuter );
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values:
E_INVALIDARG |
CLASS_E_NOAGGREGATION |
E_NOINTERFACE |
E_OUTOFMEMORY |
E_POINTER |
Header: Declared in dmusicc.h.