IDirectMusicPort8::Read

DirectMusic

Microsoft DirectX 9.0 SDK Update (Summer 2004)

IDirectMusicPort8::Read

The Read method fills a buffer with incoming MIDI data. The method should be called with new buffer objects until no more data is available to be read.

Syntax

HRESULT Read(
  LPDIRECTMUSICBUFFER pBuffer
);

Parameters

pBuffer

Address of the IDirectMusicBuffer8 interface pointer of the buffer object to be filled with the incoming MIDI data.

Return Values

If the method succeeds, the return value is S_OK, or S_FALSE if there is no more data to read.

If it fails, the method can return one of the error values shown in the following table.

Return code
E_POINTER
E_NOTIMPL

Requirements

  Header: Declared in dmusicc.h.

See Also


© 2004 Microsoft Corporation. All rights reserved.