## Multimedia Streaming Data Types

This section describes the Microsoft® DirectShow™ multimedia streaming data types.

Data type | Description
MSPID | Media stream purpose IDs define the purpose of a media stream. A purpose ID is simply typedefed as a GUID.
STREAM_STATE | Describes the state of the stream.
STREAM_TIME | Stream time measured in 100-nanosecond increments. This type is defined to be a 64-bit integer (LONGLONG).
STREAM_TYPE | Defines the direction of data flow for the stream.

###

STREAM_STATE

Multimedia Streaming Data Types

Describes the state of the stream.

    typedef enum {
    	STREAMSTATE_STOP        = 0,
    	STREAMSTATE_RUN         = 1
    } STREAM_STATE;

##### Values

STREAMSTATE_STOP
  Stop state.
STREAMSTATE_RUN
  Run state.

##### Remarks

Change the state by calling the IMultiMediaStream::SetState method.

###

STREAM_TYPE

Multimedia Streaming Data Types

Defines the direction of data flow for the stream.

    typedef enum {
    	STREAMTYPE_READ         = 0,
    	STREAMTYPE_WRITE        = 1,
    	STREAMTYPE_TRANSFORM= 2
    } STREAM_TYPE;

##### Values

STREAMTYPE_READ
  Application can read the stream.
STREAMTYPE_WRITE
  Application can write to the stream.
STREAMTYPE_TRANSFORM
  Application reads and writes the stream.

##### Remarks

Transform streams are read/write where the sample is updated in place.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.