Platform SDK: DirectX |
The IDirectMusicBuffer::SetUsedBytes method sets the number of bytes of data in the buffer.
HRESULT SetUsedBytes( DWORD cb );
If the method succeeds, the return value is S_OK.
If it fails, the method can return DMUS_E_BUFFER_FULL.
This method allows an application to repack a buffer manually. Normally, this should only be done if the data format in the buffer is different from the default format provided by DirectMusic.
The method fails if the specified number of bytes exceeds the maximum buffer size, as returned by the IDirectMusicBuffer::GetMaxBytes method.
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.