CMSPCallBase::CreateStreamObject method (mspcall.h)

The CreateStreamObject method is called by InternalCreateStream. The derived class should CreateInstance on its stream object, do an ATL _InternalQueryInterface to obtain an ITStream pointer from the stream object, and call the stream object's Init method (on the stream object pointer, not the ITStream pointer).

Syntax

HRESULT CreateStreamObject(
  DWORD              dwMediaType,
  TERMINAL_DIRECTION Direction,
  IMediaEvent        *pGraph,
  ITStream           **ppStream
);

Parameters

dwMediaType

Media type of stream to be created.

Direction

Direction of stream.

pGraph

Pointer to DirectShow IMediaEvent interface.

ppStream

Pointer to ITStream interface.

Return value

None

Requirements

Requirement Value
Target Platform Windows
Header mspcall.h

See also

CMSPCallBase