IDirectMusicPort::Read

The IDirectMusicPort::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.

HRESULT Read(
  IDirectMusicBuffer *pBuffer
);
 

Parameters

pBuffer
Pointer to a DirectMusicBuffer 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 it fails, the method may return one of the following error values:

E_POINTER
E_NOTIMPL

Remarks

When there is no more data to read, the method returns S_FALSE.

QuickInfo

  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.

See Also

Capturing Music